Table of Contents

Class PropertyRef

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

Constructors

PropertyRef(TypeRef, TypeRef, int, int?, int?, string, bool)

public PropertyRef(TypeRef declaringType, TypeRef propertyTypeRef, int metadataToken, int? getMethodMetadataToken, int? setMethodMetadataToken, string name, bool isStatic)

Parameters

declaringType TypeRef
propertyTypeRef TypeRef
metadataToken int
getMethodMetadataToken int?
setMethodMetadataToken int?
name string
isStatic bool

PropertyRef(PropertyInfo, Resolver)

public PropertyRef(PropertyInfo propertyInfo, Resolver resolver)

Parameters

propertyInfo PropertyInfo
resolver Resolver

Properties

GetMethodMetadataToken

public int? GetMethodMetadataToken { get; }

Property Value

int?

Name

public override string Name { get; }

Property Value

string

PropertyInfo

public PropertyInfo PropertyInfo { get; }

Property Value

PropertyInfo

PropertyTypeRef

public TypeRef PropertyTypeRef { get; }

Property Value

TypeRef

SetMethodMetadataToken

public int? SetMethodMetadataToken { get; }

Property Value

int?

Methods

Equals(PropertyRef?)

public bool Equals(PropertyRef? other)

Parameters

other PropertyRef

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