Class SerializedConstant
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Represents a lazily initialized implementation of Constant that is read from a .NET metadata image.
public class SerializedConstant : Constant, IMetadataMember
- Inheritance
-
SerializedConstant
- Implements
- Inherited Members
Constructors
SerializedConstant(ModuleReaderContext, MetadataToken, in ConstantRow)
Creates a constant from a constant metadata row.
public SerializedConstant(ModuleReaderContext context, MetadataToken token, in ConstantRow row)
Parameters
context
ModuleReaderContextThe reader context.
token
MetadataTokenThe token to initialize the constant for.
row
ConstantRowThe metadata table row to base the constant on.
Methods
GetParent()
Obtains the owner of the constant.
protected override IHasConstant? GetParent()
Returns
- IHasConstant
The parent.
Remarks
This method is called upon initialization of the Parent property.
GetValue()
Obtains the literal value of the constant.
protected override DataBlobSignature? GetValue()
Returns
- DataBlobSignature
The value.
Remarks
This method is called upon initialization of the Value property.