Table of Contents

Class MethodRef

Namespace
Microsoft.VisualStudio.Composition.Reflection
Assembly
Microsoft.VisualStudio.Composition.dll
public class MethodRef : MemberRef, IEquatable<MemberRef>, IEquatable<MethodRef>
Inheritance
MethodRef
Implements
Inherited Members
Extension Methods

Constructors

MethodRef(TypeRef, int, string, bool, ImmutableArray<TypeRef>, ImmutableArray<TypeRef>)

public MethodRef(TypeRef declaringType, int metadataToken, string name, bool isStatic, ImmutableArray<TypeRef> parameterTypes, ImmutableArray<TypeRef> genericMethodArguments)

Parameters

declaringType TypeRef
metadataToken int
name string
isStatic bool
parameterTypes ImmutableArray<TypeRef>
genericMethodArguments ImmutableArray<TypeRef>

MethodRef(ConstructorInfo, Resolver)

protected MethodRef(ConstructorInfo constructor, Resolver resolver)

Parameters

constructor ConstructorInfo
resolver Resolver

MethodRef(MethodBase, Resolver)

public MethodRef(MethodBase method, Resolver resolver)

Parameters

method MethodBase
resolver Resolver

MethodRef(MethodBase, Resolver, ImmutableArray<TypeRef>)

public MethodRef(MethodBase method, Resolver resolver, ImmutableArray<TypeRef> parameterTypes)

Parameters

method MethodBase
resolver Resolver
parameterTypes ImmutableArray<TypeRef>

Properties

GenericMethodArguments

public ImmutableArray<TypeRef> GenericMethodArguments { get; }

Property Value

ImmutableArray<TypeRef>

MethodBase

public MethodBase MethodBase { get; }

Property Value

MethodBase

MethodBaseNoResolve

public MethodBase? MethodBaseNoResolve { get; }

Property Value

MethodBase

Name

public override string Name { get; }

Property Value

string

ParameterTypes

public ImmutableArray<TypeRef> ParameterTypes { get; }

Property Value

ImmutableArray<TypeRef>

Methods

Equals(MethodRef?)

public bool Equals(MethodRef? other)

Parameters

other MethodRef

Returns

bool

EqualsByTypeLocalMetadata(MemberRef)

Gets a value indicating whether this instance is equivalent to another one, based only on metadata that describes this member, assuming the declaring types are equal.

protected override bool EqualsByTypeLocalMetadata(MemberRef other)

Parameters

other MemberRef

The instance to compare with. This may be assumed to always be an instance of the same type.

Returns

bool

true if the local metadata on the member are equal; false otherwise.

Get(MethodBase?, Resolver)

public static MethodRef? Get(MethodBase? method, Resolver resolver)

Parameters

method MethodBase
resolver Resolver

Returns

MethodRef

GetHashCode()

public override int GetHashCode()

Returns

int

Resolve()

protected override MemberInfo Resolve()

Returns

MemberInfo

ToString()

public override string ToString()

Returns

string