Struct MethodImplementation
- Namespace
- AsmResolver.DotNet
- Assembly
- AsmResolver.DotNet.dll
Defines an explicit implementation of a method defined by an interface.
public readonly struct MethodImplementation : IEquatable<MethodImplementation>
- Implements
- Inherited Members
Constructors
MethodImplementation(IMethodDefOrRef?, IMethodDefOrRef?)
Creates a new explicit implementation of a method.
public MethodImplementation(IMethodDefOrRef? declaration, IMethodDefOrRef? body)
Parameters
declarationIMethodDefOrRefThe interface method that is implemented.
bodyIMethodDefOrRefThe method implementing the base method.
Properties
Body
Gets the method that implements the base method.
public IMethodDefOrRef? Body { get; }
Property Value
Declaration
Gets the interface method that is implemented.
public IMethodDefOrRef? Declaration { get; }
Property Value
Methods
Equals(MethodImplementation)
Determines whether two method implementations record are equal.
public bool Equals(MethodImplementation other)
Parameters
otherMethodImplementationThe other implementation record.
Returns
- bool
trueif they are considered equal,falseotherwise.
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()