Class SerializedTypeReference
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Represents a lazily initialized implementation of TypeReference that is read from a .NET metadata image.
public class SerializedTypeReference : TypeReference, ITypeDefOrRef, ITypeDescriptor, IMemberDescriptor, IFullNameProvider, IMemberRefParent, IHasCustomAttribute, IResolutionScope, IMetadataMember, INameProvider, IModuleProvider, IImportable
- Inheritance
-
SerializedTypeReference
- Implements
- Inherited Members
- Extension Methods
Constructors
SerializedTypeReference(ModuleReaderContext, MetadataToken, in TypeReferenceRow)
Creates a type reference from a type metadata row.
public SerializedTypeReference(ModuleReaderContext context, MetadataToken token, in TypeReferenceRow row)
Parameters
context
ModuleReaderContextThe reader context.
token
MetadataTokenThe token to initialize the type for.
row
TypeReferenceRowThe metadata table row to base the type definition on.
Methods
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 type reference.
protected override Utf8String? GetName()
Returns
- Utf8String
The name.
Remarks
This method is called upon initialization of the Name property.
GetNamespace()
Obtains the namespace of the type reference.
protected override Utf8String? GetNamespace()
Returns
- Utf8String
The namespace.
Remarks
This method is called upon initialization of the Namespace property.
GetScope()
Obtains the scope of the type reference.
protected override IResolutionScope? GetScope()
Returns
- IResolutionScope
The scope.
Remarks
This method is called upon initialization of the Scope property.