Class InterfaceImplementation
- Namespace
- AsmResolver.DotNet
- Assembly
- AsmResolver.DotNet.dll
Represents extra metadata added to a type indicating the type is implementing a particular interface.
public class InterfaceImplementation : MetadataMember, IModuleProvider, IOwnedCollectionElement<TypeDefinition>, IHasCustomAttribute, IMetadataMember
- Inheritance
-
InterfaceImplementation
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
InterfaceImplementation(ITypeDefOrRef?)
Creates a new instance of the InterfaceImplementation class.
public InterfaceImplementation(ITypeDefOrRef? interfaceType)
Parameters
interfaceType
ITypeDefOrRefThe interface to be implemented.
InterfaceImplementation(MetadataToken)
Initializes the InterfaceImplementation object with a metadata token.
protected InterfaceImplementation(MetadataToken token)
Parameters
token
MetadataToken
Properties
Class
Gets the type that implements the interface.
public TypeDefinition? Class { get; }
Property Value
CustomAttributes
Gets a collection of custom attributes assigned to this member.
public IList<CustomAttribute> CustomAttributes { get; }
Property Value
DeclaringModule
public ModuleDefinition? DeclaringModule { get; }
Property Value
Interface
Gets or sets the interface type that was implemented.
public ITypeDefOrRef? Interface { get; set; }
Property Value
Methods
GetClass()
Obtains the type that implements the interface.
protected virtual 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 virtual 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 virtual ITypeDefOrRef? GetInterface()
Returns
- ITypeDefOrRef
The interface.
Remarks
This method is called upon initialization of the Interface property.