Table of Contents

Class ConstantSymbol

Namespace
AsmResolver.Symbols.Pdb.Records
Assembly
AsmResolver.Symbols.Pdb.dll

Represents a single constant symbol.

public class ConstantSymbol : CodeViewSymbol, ICodeViewSymbol
Inheritance
ConstantSymbol
Implements
Derived
Inherited Members

Constructors

ConstantSymbol()

Initializes a named constant

protected ConstantSymbol()

ConstantSymbol(Utf8String, CodeViewTypeRecord, ushort)

Defines a new named constant.

public ConstantSymbol(Utf8String name, CodeViewTypeRecord type, ushort value)

Parameters

name Utf8String

The name of the type.

type CodeViewTypeRecord

The type.

value ushort

The value to assign to the constant.

Properties

CodeViewSymbolType

Gets the type of symbol this record encodes.

public override CodeViewSymbolType CodeViewSymbolType { get; }

Property Value

CodeViewSymbolType

Name

Gets or sets the name of the constant.

public Utf8String Name { get; set; }

Property Value

Utf8String

Type

Gets or sets the value type of the constant.

public CodeViewTypeRecord Type { get; set; }

Property Value

CodeViewTypeRecord

Value

Gets or sets the numerical value assigned to the constant.

public ushort Value { get; set; }

Property Value

ushort

Methods

GetConstantType()

Obtains the value type of the constant.

protected virtual CodeViewTypeRecord? GetConstantType()

Returns

CodeViewTypeRecord

The name.

Remarks

This method is called upon initialization of the Type property.

GetName()

Obtains the name of the constant.

protected virtual Utf8String GetName()

Returns

Utf8String

The name.

Remarks

This method is called upon initialization of the Name property.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.