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