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, INameProvider, IHasCustomAttribute, IMetadataMember, IModuleProvider, 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
context
ModuleReaderContextThe reader context.
token
MetadataTokenThe token to initialize the generic parameter for.
row
GenericParameterRowThe metadata table row to base the generic parameter on.
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.