Table of Contents

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 Utf8String

The name of the field.

value object

The value assigned to the field.

attributes CodeViewFieldAttributes

The attributes associated to the field.

EnumerateField(uint)

Initializes an empty enumerate field leaf.

protected EnumerateField(uint typeIndex)

Parameters

typeIndex uint

The type index to assign to the enumerate field.

Properties

LeafKind

Gets the type kind this record encodes.

public override CodeViewLeafKind LeafKind { get; }

Property Value

CodeViewLeafKind

Value

Gets or sets the constant value assigned to the field.

public object Value { get; set; }

Property Value

object

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.