Class Indexer<T, A, V>
Represents static indexer property.
Inherited Members
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public sealed class Indexer<T, A, V> : IndexerBase<A, V>, IProperty, IMember<PropertyInfo>, ICustomAttributeProvider, IEquatable<PropertyInfo> where A : struct
Type Parameters
Name | Description |
---|---|
T | Type of instance with indexer property. |
A | A structure representing parameters of indexer. |
V | Property value. |
Properties
| Improve this Doc View SourceGetMethod
Gets indexer property getter.
Declaration
public Method<Indexer<T, A, V>.Getter> GetMethod { get; }
Property Value
Type | Description |
---|---|
Method<Indexer.Getter<>> |
Item[T, A]
Gets or sets instance property.
Declaration
public V this[in T this, in A index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
T | this | The object whose property value will be set or returned. |
A | index | Index values for indexed properties. |
Property Value
Type | Description |
---|---|
V |
SetMethod
Gets indexer property setter.
Declaration
public Method<Indexer<T, A, V>.Setter> SetMethod { get; }
Property Value
Type | Description |
---|---|
Method<Indexer.Setter<>> |
Operators
| Improve this Doc View SourceImplicit(Indexer<T, A, V> to Indexer<T, A, V>.Getter)
Obtains property getter.
Declaration
public static implicit operator Indexer<T, A, V>.Getter(Indexer<T, A, V> indexer)
Parameters
Type | Name | Description |
---|---|---|
Indexer<T, A, V> | indexer | The reflected property instance. |
Returns
Type | Description |
---|---|
Indexer.Getter<> |
Implicit(Indexer<T, A, V> to Indexer<T, A, V>.Setter)
Obtains property setter.
Declaration
public static implicit operator Indexer<T, A, V>.Setter(Indexer<T, A, V> indexer)
Parameters
Type | Name | Description |
---|---|---|
Indexer<T, A, V> | indexer | The reflected property instance. |
Returns
Type | Description |
---|---|
Indexer.Setter<> |
Implements
ICustomAttributeProvider
IEquatable<>