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
TypeRefpropertyTypeRef
TypeRefmetadataToken
intgetMethodMetadataToken
int?setMethodMetadataToken
int?name
stringisStatic
bool
PropertyRef(PropertyInfo, Resolver)
public PropertyRef(PropertyInfo propertyInfo, Resolver resolver)
Parameters
propertyInfo
PropertyInforesolver
Resolver
Properties
GetMethodMetadataToken
public int? GetMethodMetadataToken { get; }
Property Value
- int?
Name
public override string Name { get; }
Property Value
PropertyInfo
public PropertyInfo PropertyInfo { get; }
Property Value
PropertyTypeRef
public TypeRef PropertyTypeRef { get; }
Property Value
SetMethodMetadataToken
public int? SetMethodMetadataToken { get; }
Property Value
- int?
Methods
Equals(PropertyRef?)
public bool Equals(PropertyRef? other)
Parameters
other
PropertyRef
Returns
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
MemberRefThe instance to compare with. This may be assumed to always be an instance of the same type.
Returns
GetHashCode()
public override int GetHashCode()
Returns
Resolve()
protected override MemberInfo Resolve()