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?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.