Class FileStaticSymbol
- Namespace
- AsmResolver.Symbols.Pdb.Records
- Assembly
- AsmResolver.Symbols.Pdb.dll
Represents a file static variable symbol.
public class FileStaticSymbol : CodeViewSymbol, IVariableSymbol, ICodeViewSymbol
- Inheritance
-
FileStaticSymbol
- Implements
- Derived
- Inherited Members
Constructors
FileStaticSymbol()
Initializes an empty file static symbol.
protected FileStaticSymbol()
FileStaticSymbol(Utf8String, CodeViewTypeRecord, LocalAttributes)
Creates a new file static variable symbol.
public FileStaticSymbol(Utf8String name, CodeViewTypeRecord variableType, LocalAttributes attributes)
Parameters
name
Utf8StringThe name of the variable.
variableType
CodeViewTypeRecordThe data 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
ModuleFileNameOffset
Gets or sets the index of the module's file name within the string table.
public uint ModuleFileNameOffset { get; set; }
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.