Class SerializedTypeDefinition
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Represents a lazily initialized implementation of TypeDefinition that is read from a .NET metadata image.
public class SerializedTypeDefinition : TypeDefinition, ITypeDefOrRef, ITypeDescriptor, IMemberRefParent, IHasCustomAttribute, IMemberDefinition, IHasGenericParameters, IMemberDescriptor, IFullNameProvider, INameProvider, IModuleProvider, IImportable, IHasSecurityDeclaration, IMetadataMember, IOwnedCollectionElement<ModuleDefinition>, IOwnedCollectionElement<TypeDefinition>
- Inheritance
-
SerializedTypeDefinition
- Implements
- Inherited Members
- Extension Methods
Constructors
SerializedTypeDefinition(ModuleReaderContext, MetadataToken, in TypeDefinitionRow)
Creates a type definition from a type metadata row.
public SerializedTypeDefinition(ModuleReaderContext context, MetadataToken token, in TypeDefinitionRow row)
Parameters
context
ModuleReaderContextThe reader context.
token
MetadataTokenThe token to initialize the type for.
row
TypeDefinitionRowThe metadata table row to base the type definition on.
Methods
GetBaseType()
Obtains the base type of the type definition.
protected override ITypeDefOrRef? GetBaseType()
Returns
- ITypeDefOrRef
The namespace.
Remarks
This method is called upon initialization of the BaseType property.
GetClassLayout()
Obtains the class layout of this type.
protected override ClassLayout? GetClassLayout()
Returns
- ClassLayout
The class layout.
Remarks
This method is called upon initialization of the ClassLayout 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.
GetDeclaringType()
Obtains the enclosing class of the type definition if available.
protected override TypeDefinition? GetDeclaringType()
Returns
- TypeDefinition
The enclosing type.
Remarks
This method is called upon initialization of the DeclaringType property.
GetEvents()
Obtains the collection of events that this type defines.
protected override IList<EventDefinition> GetEvents()
Returns
- IList<EventDefinition>
The events.
Remarks
This method is called upon initialization of the Events property.
GetFields()
Obtains the collection of fields that this type defines.
protected override IList<FieldDefinition> GetFields()
Returns
- IList<FieldDefinition>
The fields.
Remarks
This method is called upon initialization of the Fields property.
GetGenericParameters()
Obtains the list of generic parameters this member declares.
protected override IList<GenericParameter> GetGenericParameters()
Returns
- IList<GenericParameter>
The generic parameters
Remarks
This method is called upon initialization of the GenericParameters property.
GetInterfaces()
Obtains the list of interfaces this type implements.
protected override IList<InterfaceImplementation> GetInterfaces()
Returns
- IList<InterfaceImplementation>
The interfaces.
Remarks
This method is called upon initialization of the Interfaces property.
GetMethodImplementations()
Obtains the list of methods this type implements.
protected override IList<MethodImplementation> GetMethodImplementations()
Returns
- IList<MethodImplementation>
The method implementations.
Remarks
This method is called upon initialization of the MethodImplementations property.
GetMethods()
Obtains the collection of methods that this type defines.
protected override IList<MethodDefinition> GetMethods()
Returns
- IList<MethodDefinition>
The methods.
Remarks
This method is called upon initialization of the Methods property.
GetName()
Obtains the name of the type definition.
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 definition.
protected override Utf8String? GetNamespace()
Returns
- Utf8String
The namespace.
Remarks
This method is called upon initialization of the Namespace property.
GetNestedTypes()
Obtains the list of nested types that this type defines.
protected override IList<TypeDefinition> GetNestedTypes()
Returns
- IList<TypeDefinition>
The nested types.
Remarks
This method is called upon initialization of the NestedTypes property.
GetProperties()
Obtains the collection of properties that this type defines.
protected override IList<PropertyDefinition> GetProperties()
Returns
- IList<PropertyDefinition>
The properties.
Remarks
This method is called upon initialization of the Properties property.
GetSecurityDeclarations()
Obtains the list of security declarations assigned to the member.
protected override IList<SecurityDeclaration> GetSecurityDeclarations()
Returns
- IList<SecurityDeclaration>
The security declarations
Remarks
This method is called upon initialization of the SecurityDeclarations property.