Table of Contents

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 IMethodDefOrRef

The interface method that is implemented.

body IMethodDefOrRef

The method implementing the base method.

Properties

Body

Gets the method that implements the base method.

public IMethodDefOrRef? Body { get; }

Property Value

IMethodDefOrRef

Declaration

Gets the interface method that is implemented.

public IMethodDefOrRef? Declaration { get; }

Property Value

IMethodDefOrRef

Methods

Equals(MethodImplementation)

Determines whether two method implementations record are equal.

public bool Equals(MethodImplementation other)

Parameters

other MethodImplementation

The other implementation record.

Returns

bool

true if they are considered equal, false otherwise.

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string