Class UnionTypeRecord
- Namespace
- AsmResolver.Symbols.Pdb.Leaves
- Assembly
- AsmResolver.Symbols.Pdb.dll
Represents a type of a value that may have several representations or formats within the same position of memory.
public class UnionTypeRecord : CodeViewCompositeTypeRecord, ITpiLeaf, ICodeViewLeaf
- Inheritance
-
UnionTypeRecord
- Implements
- Derived
- Inherited Members
Constructors
UnionTypeRecord(uint)
Initializes an empty union type.
protected UnionTypeRecord(uint typeIndex)
Parameters
typeIndex
uintThe type index to assign to the union.
UnionTypeRecord(ulong)
Creates a new union type with the provided size.
public UnionTypeRecord(ulong size)
Parameters
size
ulongThe total size in bytes of the union.
Properties
LeafKind
Gets the type kind this record encodes.
public override CodeViewLeafKind LeafKind { get; }
Property Value
Size
Gets or sets the total size in bytes of the union type.
public ulong Size { get; set; }
Property Value
UniqueName
Gets or sets the uniquely identifiable name for this type.
public Utf8String UniqueName { get; set; }
Property Value
Methods
GetUniqueName()
Obtains the uniquely identifiable name of the type.
protected virtual Utf8String? GetUniqueName()
Returns
- Utf8String
The name.
Remarks
This method is called upon initialization of the UniqueName property.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.