Table of Contents

Class FieldRef

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

Constructors

FieldRef(TypeRef, TypeRef, int, string, bool)

public FieldRef(TypeRef declaringType, TypeRef fieldTypeRef, int metadataToken, string name, bool isStatic)

Parameters

declaringType TypeRef
fieldTypeRef TypeRef
metadataToken int
name string
isStatic bool

FieldRef(FieldInfo, Resolver)

public FieldRef(FieldInfo field, Resolver resolver)

Parameters

field FieldInfo
resolver Resolver

Properties

FieldInfo

public FieldInfo FieldInfo { get; }

Property Value

FieldInfo

FieldTypeRef

public TypeRef FieldTypeRef { get; }

Property Value

TypeRef

Name

public override string Name { get; }

Property Value

string

Methods

Equals(FieldRef?)

public bool Equals(FieldRef? fieldRef)

Parameters

fieldRef FieldRef

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.

GetHashCode()

public override int GetHashCode()

Returns

int

Resolve()

protected override MemberInfo Resolve()

Returns

MemberInfo