Class SerializedInterfaceImplementation
- Namespace
- AsmResolver.DotNet.Serialized
- Assembly
- AsmResolver.DotNet.dll
Represents a lazily initialized implementation of InterfaceImplementation that is read from a .NET metadata image.
public class SerializedInterfaceImplementation : InterfaceImplementation, IModuleProvider, IOwnedCollectionElement<TypeDefinition>, IHasCustomAttribute, IMetadataMember
- Inheritance
-
SerializedInterfaceImplementation
- Implements
- Inherited Members
- Extension Methods
Constructors
SerializedInterfaceImplementation(ModuleReaderContext, MetadataToken, in InterfaceImplementationRow)
Creates a interface implementation from an interface implementation metadata row.
public SerializedInterfaceImplementation(ModuleReaderContext context, MetadataToken token, in InterfaceImplementationRow row)
Parameters
context
ModuleReaderContextThe reader context.
token
MetadataTokenThe token to initialize the interface implementation for.
row
InterfaceImplementationRowThe metadata table row to base the interface implementation on.
Methods
GetClass()
Obtains the type that implements the interface.
protected override TypeDefinition? GetClass()
Returns
- TypeDefinition
The type.
Remarks
This method is called upon initialization of the Class 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.
GetInterface()
Obtains the interface that is implemented.
protected override ITypeDefOrRef? GetInterface()
Returns
- ITypeDefOrRef
The interface.
Remarks
This method is called upon initialization of the Interface property.