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
CodeViewTypeRecordThe type to be modified.
attributes
ModifierAttributesThe attributes describing the shape of the pointer.
ModifierTypeRecord(uint)
Initializes a new empty modifier type.
protected ModifierTypeRecord(uint typeIndex)
Parameters
typeIndex
uintThe 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
BaseType
Gets or sets the type that is annotated.
public CodeViewTypeRecord BaseType { get; set; }
Property Value
IsConst
Gets or sets a value indicating whether the type is marked as const.
public bool IsConst { get; set; }
Property Value
IsUnaligned
Gets or sets a value indicating whether the type is marked as unaligned.
public bool IsUnaligned { get; set; }
Property Value
IsVolatile
Gets or sets a value indicating whether the type is marked as volatile.
public bool IsVolatile { get; set; }
Property Value
LeafKind
Gets the type kind this record encodes.
public override CodeViewLeafKind LeafKind { get; }
Property Value
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.