Table of Contents

Class ArrayTypeRecord

Namespace
AsmResolver.Symbols.Pdb.Leaves
Assembly
AsmResolver.Symbols.Pdb.dll

Represents a type describing an array of elements.

public class ArrayTypeRecord : CodeViewTypeRecord, ITpiLeaf, ICodeViewLeaf
Inheritance
ArrayTypeRecord
Implements
Derived
Inherited Members

Constructors

ArrayTypeRecord(CodeViewTypeRecord, CodeViewTypeRecord, ulong)

Creates a new array type.

public ArrayTypeRecord(CodeViewTypeRecord elementType, CodeViewTypeRecord indexType, ulong length)

Parameters

elementType CodeViewTypeRecord

The type of each element in the array.

indexType CodeViewTypeRecord

The type to use for indexing into the array.

length ulong

The number of elements in the array.

ArrayTypeRecord(CodeViewTypeRecord, CodeViewTypeRecord, ulong, Utf8String)

Creates a new array type.

public ArrayTypeRecord(CodeViewTypeRecord elementType, CodeViewTypeRecord indexType, ulong length, Utf8String name)

Parameters

elementType CodeViewTypeRecord

The type of each element in the array.

indexType CodeViewTypeRecord

The type to use for indexing into the array.

length ulong

The number of elements in the array.

name Utf8String

The name of the array type.

ArrayTypeRecord(uint)

Initializes a new empty array type.

protected ArrayTypeRecord(uint typeIndex)

Parameters

typeIndex uint

The type index to assign to the type.

Properties

ElementType

Gets or sets the type of each element in the array.

public CodeViewTypeRecord? ElementType { get; set; }

Property Value

CodeViewTypeRecord

IndexType

Gets or sets the type that is used to index into the array.

public CodeViewTypeRecord? IndexType { get; set; }

Property Value

CodeViewTypeRecord

LeafKind

Gets the type kind this record encodes.

public override CodeViewLeafKind LeafKind { get; }

Property Value

CodeViewLeafKind

Length

Gets or sets the number of elements in the array.

public ulong Length { get; set; }

Property Value

ulong

Name

Gets or sets the name of the type.

public Utf8String Name { get; set; }

Property Value

Utf8String

Methods

GetElementType()

Obtains the element type of the array.

protected virtual CodeViewTypeRecord? GetElementType()

Returns

CodeViewTypeRecord

The element type.

Remarks

This method is called upon initialization of the ElementType property.

GetIndexType()

Obtains the index type of the array.

protected virtual CodeViewTypeRecord? GetIndexType()

Returns

CodeViewTypeRecord

The index type.

Remarks

This method is called upon initialization of the IndexType property.

GetName()

Obtains the name type of the array.

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.