Class SerializedParameterDefinition
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Represents a lazily initialized implementation of ParameterDefinition that is read from a .NET metadata image.
public class SerializedParameterDefinition : ParameterDefinition, IHasCustomAttribute, IHasConstant, IHasFieldMarshal, IMetadataMember, INameProvider, IModuleProvider, IOwnedCollectionElement<MethodDefinition>
- Inheritance
-
SerializedParameterDefinition
- Implements
- Inherited Members
- Extension Methods
Constructors
SerializedParameterDefinition(ModuleReaderContext, MetadataToken, in ParameterDefinitionRow)
Creates a parameter definition from a parameter metadata row.
public SerializedParameterDefinition(ModuleReaderContext context, MetadataToken token, in ParameterDefinitionRow row)
Parameters
context
ModuleReaderContextThe reader context.
token
MetadataTokenThe token to initialize the parameter for.
row
ParameterDefinitionRowThe metadata table row to base the parameter definition on.
Methods
GetConstant()
Obtains the constant value assigned to the parameter definition.
protected override Constant? GetConstant()
Returns
- Constant
The constant.
Remarks
This method is called upon initialization of the Constant property.
GetCustomAttributes()
Obtains the list of custom attributes assigned to the member.
protected override IList<CustomAttribute> GetCustomAttributes()
Returns
- IList<CustomAttribute>
The attributes
Remarks
This method is called upon initialization of the CustomAttributes property.
GetMarshalDescriptor()
Obtains the marshal descriptor value assigned to the parameter definition.
protected override MarshalDescriptor? GetMarshalDescriptor()
Returns
- MarshalDescriptor
The marshal descriptor.
Remarks
This method is called upon initialization of the MarshalDescriptor property.
GetMethod()
Obtains the method that owns the parameter.
protected override MethodDefinition? GetMethod()
Returns
- MethodDefinition
The name.
Remarks
This method is called upon initialization of the Method property.
GetName()
Obtains the name of the parameter.
protected override Utf8String? GetName()
Returns
- Utf8String
The name.
Remarks
This method is called upon initialization of the Name property.