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
declaration
IMethodDefOrRefThe interface method that is implemented.
body
IMethodDefOrRefThe 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
other
MethodImplementationThe other implementation record.
Returns
- bool
true
if they are considered equal,false
otherwise.
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and 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.