Table of Contents

Class ModifierTypeRecord

Namespace
AsmResolver.Symbols.Pdb.Leaves
Assembly
AsmResolver.Symbols.Pdb.dll

Represents a type that is annotated with extra modifiers.

public class ModifierTypeRecord : CodeViewTypeRecord, ITpiLeaf, ICodeViewLeaf
Inheritance
ModifierTypeRecord
Implements
Derived
Inherited Members

Constructors

ModifierTypeRecord(CodeViewTypeRecord, ModifierAttributes)

Creates a new modified type.

public ModifierTypeRecord(CodeViewTypeRecord type, ModifierAttributes attributes)

Parameters

type CodeViewTypeRecord

The type to be modified.

attributes ModifierAttributes

The attributes describing the shape of the pointer.

ModifierTypeRecord(uint)

Initializes a new empty modifier type.

protected ModifierTypeRecord(uint typeIndex)

Parameters

typeIndex uint

The type index to assign to the modifier type.

Properties

Attributes

Gets or sets the annotations that were added to the type.

public ModifierAttributes Attributes { get; set; }

Property Value

ModifierAttributes

BaseType

Gets or sets the type that is annotated.

public CodeViewTypeRecord BaseType { get; set; }

Property Value

CodeViewTypeRecord

IsConst

Gets or sets a value indicating whether the type is marked as const.

public bool IsConst { get; set; }

Property Value

bool

IsUnaligned

Gets or sets a value indicating whether the type is marked as unaligned.

public bool IsUnaligned { get; set; }

Property Value

bool

IsVolatile

Gets or sets a value indicating whether the type is marked as volatile.

public bool IsVolatile { get; set; }

Property Value

bool

LeafKind

Gets the type kind this record encodes.

public override CodeViewLeafKind LeafKind { get; }

Property Value

CodeViewLeafKind

Methods

GetBaseType()

Obtains the base type of the modifier type.

protected virtual CodeViewTypeRecord? GetBaseType()

Returns

CodeViewTypeRecord

The base type.

Remarks

This method is called upon initialization of the BaseType property.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.