Class SerializedGenericParameter
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Represents a lazily initialized implementation of GenericParameter that is read from a .NET metadata image.
public class SerializedGenericParameter : GenericParameter, IHasCustomAttribute, IModuleProvider, IMetadataDefinition, IMetadataMember, INameProvider, IOwnedCollectionElement<IHasGenericParameters>
- Inheritance
-
SerializedGenericParameter
- Implements
- Inherited Members
- Extension Methods
Constructors
SerializedGenericParameter(ModuleReaderContext, MetadataToken, in GenericParameterRow)
Creates a generic parameter from a generic parameter metadata row.
public SerializedGenericParameter(ModuleReaderContext context, MetadataToken token, in GenericParameterRow row)
Parameters
contextModuleReaderContextThe reader context.
tokenMetadataTokenThe token to initialize the generic parameter for.
rowGenericParameterRowThe metadata table row to base the generic parameter on.
Properties
HasConstraints
Gets a value indicating whether the generic parameter defines additional constraints.
public override bool HasConstraints { get; }
Property Value
HasCustomAttributes
Gets a value indicating whether the member is assigned custom attributes.
public override bool HasCustomAttributes { get; }
Property Value
Methods
GetConstraints()
Obtains a collection of constraints put on the generic parameter.
protected override IList<GenericParameterConstraint> GetConstraints()
Returns
- IList<GenericParameterConstraint>
The constraints
Remarks
This method is called upon initialization of the Constraints 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.
GetName()
Obtains the name of the generic parameter.
protected override Utf8String? GetName()
Returns
- Utf8String
The name.
Remarks
This method is called upon initialization of the Name property.
GetOwner()
Obtains the owner of the generic parameter.
protected override IHasGenericParameters? GetOwner()
Returns
- IHasGenericParameters
The owner
Remarks
This method is called upon initialization of the Owner property.