Struct ClrPropertySignature
A data structure that represents the parts of an IL property signature that are relevant to property reference resolution.
Implements
Inherited Members
Namespace: Flame.Clr
Assembly: Flame.Clr.dll
Syntax
public struct ClrPropertySignature : IEquatable<ClrPropertySignature>
Properties
| Improve this Doc View SourceIndexerParameterTypes
Gets the parameter types of the property signature.
Declaration
public ImmutableArray<IType> IndexerParameterTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Immutable.ImmutableArray<IType> | The parameter types. |
Name
Gets the name of the property signature.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String | The property signature's name. |
PropertyType
Gets the return type of the property signature.
Declaration
public IType PropertyType { get; }
Property Value
Type | Description |
---|---|
IType | The return type. |
Methods
| Improve this Doc View SourceCreate(IProperty)
Creates a property signature for a property.
Declaration
public static ClrPropertySignature Create(IProperty property)
Parameters
Type | Name | Description |
---|---|---|
IProperty | property | The property to describe using a signature. |
Returns
Type | Description |
---|---|
ClrPropertySignature | A property signature. |
Create(String, IType, ImmutableArray<IType>)
Creates a property signature from a property's name, its property type and its indexer parameter types.
Declaration
public static ClrPropertySignature Create(string name, IType propertyType, ImmutableArray<IType> indexerParameterTypes)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property signature. |
IType | propertyType | The return type of the property signature. |
System.Collections.Immutable.ImmutableArray<IType> | indexerParameterTypes | The types of the property signature's indexer parameters. |
Returns
Type | Description |
---|---|
ClrPropertySignature | A property signature. |
Equals(ClrPropertySignature)
Tests if this property signature equals another property signature.
Declaration
public bool Equals(ClrPropertySignature other)
Parameters
Type | Name | Description |
---|---|---|
ClrPropertySignature | other | The signature to compare this one to. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |