Class EnumerateField
- Namespace
- AsmResolver.Symbols.Pdb.Leaves
- Assembly
- AsmResolver.Symbols.Pdb.dll
Represents a single enumerate field leaf in a field list.
public class EnumerateField : CodeViewNamedField, ITpiLeaf, ICodeViewLeaf
- Inheritance
-
EnumerateField
- Implements
- Derived
- Inherited Members
Constructors
EnumerateField(Utf8String, object, CodeViewFieldAttributes)
Creates a new enumerate field leaf.
public EnumerateField(Utf8String name, object value, CodeViewFieldAttributes attributes)
Parameters
name
Utf8StringThe name of the field.
value
objectThe value assigned to the field.
attributes
CodeViewFieldAttributesThe attributes associated to the field.
EnumerateField(uint)
Initializes an empty enumerate field leaf.
protected EnumerateField(uint typeIndex)
Parameters
typeIndex
uintThe type index to assign to the enumerate field.
Properties
LeafKind
Gets the type kind this record encodes.
public override CodeViewLeafKind LeafKind { get; }
Property Value
Value
Gets or sets the constant value assigned to the field.
public object Value { get; set; }
Property Value
Methods
GetValue()
Obtains the value assigned to the field.
protected virtual object? GetValue()
Returns
- object
The value.
Remarks
This method is called upon initialization of the Value property.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.