Class LocalSymbol
- Namespace
- AsmResolver.Symbols.Pdb.Records
- Assembly
- AsmResolver.Symbols.Pdb.dll
Represents a symbol describing a local variable in a function or method.
public class LocalSymbol : CodeViewSymbol, IVariableSymbol, ICodeViewSymbol
- Inheritance
-
LocalSymbol
- Implements
- Derived
- Inherited Members
Constructors
LocalSymbol()
Initializes an empty local variable symbol.
protected LocalSymbol()
LocalSymbol(Utf8String?, CodeViewTypeRecord?, LocalAttributes)
Creates a new local variable symbol.
public LocalSymbol(Utf8String? name, CodeViewTypeRecord? variableType, LocalAttributes attributes)
Parameters
name
Utf8StringThe name of the variable.
variableType
CodeViewTypeRecordThe type of the variable.
attributes
LocalAttributesThe attributes describing the variable.
Properties
Attributes
Gets or sets the attributes describing the variable.
public LocalAttributes Attributes { get; set; }
Property Value
CodeViewSymbolType
Gets the type of symbol this record encodes.
public override CodeViewSymbolType CodeViewSymbolType { get; }
Property Value
Name
Gets or sets the name of the variable.
public Utf8String? Name { get; set; }
Property Value
VariableType
Gets or sets the value type of the variable.
public CodeViewTypeRecord? VariableType { get; set; }
Property Value
Methods
GetName()
Obtains the name of the variable.
protected virtual Utf8String? GetName()
Returns
- Utf8String
The name.
Remarks
This method is called upon initialization of the Name property.
GetVariableType()
Obtains the type of the variable.
protected virtual CodeViewTypeRecord? GetVariableType()
Returns
- CodeViewTypeRecord
The type.
Remarks
This method is called upon initialization of the VariableType property.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.