MemberReference Class

A method or a field used by an instruction. The member may be defined outside the architecture.

public sealed class MemberReference

Properties

NameDescription
DeclaringTypeGets the type that declares the member, with its generic arguments.
KindGets the kind of the member.
NameGets the name of the member as written in metadata: .ctor for a constructor, get_Now for the getter of the Now property.

DeclaringType

MemberReference.cs

Gets the type that declares the member, with its generic arguments.

public TypeReference DeclaringType { get; }

Property value

TypeReference

Gets the kind of the member.

public MemberReferenceKind Kind { get; }

Property value

MemberReferenceKind

Gets the name of the member as written in metadata: .ctor for a constructor, get_Now for the getter of the Now property.

public string Name { get; }

Property value

string

Methods

NameDescription
ToString()Returns the member as DeclaringType.Name.

Returns the member as DeclaringType.Name.

public override string ToString()

Returns

string The member as DeclaringType.Name.