Class UserDefinedTypeSymbol
- Namespace
- AsmResolver.Symbols.Pdb.Records
- Assembly
- AsmResolver.Symbols.Pdb.dll
Represents a user-defined type symbol in a PDB symbol stream, mapping a symbol to a type in the TPI stream.
public class UserDefinedTypeSymbol : CodeViewSymbol, ICodeViewSymbol
- Inheritance
-
UserDefinedTypeSymbol
- Implements
- Derived
- Inherited Members
Constructors
UserDefinedTypeSymbol()
Initializes a new empty user-defined type symbol.
protected UserDefinedTypeSymbol()
UserDefinedTypeSymbol(Utf8String, CodeViewTypeRecord)
Defines a new user-defined type.
public UserDefinedTypeSymbol(Utf8String name, CodeViewTypeRecord type)
Parameters
name
Utf8StringThe name of the type.
type
CodeViewTypeRecordThe type.
Properties
CodeViewSymbolType
Gets the type of symbol this record encodes.
public override CodeViewSymbolType CodeViewSymbolType { get; }
Property Value
Name
Gets or sets the name of the type.
public Utf8String Name { get; set; }
Property Value
Type
Gets or sets the index associated to the type.
public CodeViewTypeRecord Type { get; set; }
Property Value
Methods
GetName()
Obtains the new name of the type.
protected virtual Utf8String GetName()
Returns
- Utf8String
The name.
Remarks
This method is called upon initialization of the Name property.
GetSymbolType()
Obtains the type that is referenced by this symbol.
protected virtual CodeViewTypeRecord? GetSymbolType()
Returns
- CodeViewTypeRecord
The type.
Remarks
This method is called upon initialization of the Type property.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.