Show / Hide Table of Contents

Class Type<T>.Indexer<TIndicies, TValue>

Provides access to indexer property declared in type T.

Inheritance
Object
Type<T>.Indexer<TIndicies, TValue>
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public static class Indexer<TIndicies, TValue>

    where TIndicies : struct
Type Parameters
Name Description
TIndicies

A structure representing parameters of indexer.

TValue

Property value.

Methods

| Improve this Doc View Source

Get(String, Boolean)

Reflects instance indexer property.

Declaration
public static Indexer<T, TIndicies, TValue> Get(string propertyName = "Item", bool nonPublic = false)
Parameters
Type Name Description
String propertyName

The name of the indexer property.

Boolean nonPublic

true to reflect non-public property.

Returns
Type Description
Indexer<T, TIndicies, TValue>

The reflected property; or null, if property doesn't exist.

| Improve this Doc View Source

GetStatic(String, Boolean)

Reflects static indexer property.

Declaration
public static Indexer<TIndicies, TValue> GetStatic(string propertyName, bool nonPublic = false)
Parameters
Type Name Description
String propertyName

The name of the indexer property.

Boolean nonPublic

true to reflect non-public property.

Returns
Type Description
Indexer<TIndicies, TValue>

The reflected property; or null, if property doesn't exist.

| Improve this Doc View Source

Require(String, Boolean)

Reflects instance indexer property.

Declaration
public static Indexer<T, TIndicies, TValue> Require(string propertyName = "Item", bool nonPublic = false)
Parameters
Type Name Description
String propertyName

The name of the indexer property.

Boolean nonPublic

true to reflect non-public property.

Returns
Type Description
Indexer<T, TIndicies, TValue>

The reflected indexer property.

Exceptions
Type Condition
MissingPropertyException

The property doesn't exist.

| Improve this Doc View Source

RequireStatic(String, Boolean)

Reflects static indexer property.

Declaration
public static Indexer<TIndicies, TValue> RequireStatic(string propertyName, bool nonPublic = false)
Parameters
Type Name Description
String propertyName

The name of the indexer property.

Boolean nonPublic

true to reflect non-public property.

Returns
Type Description
Indexer<TIndicies, TValue>

The reflected indexer property.

Exceptions
Type Condition
MissingPropertyException

The property doesn't exist.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX