System.Runtime.CompilerServices.IndexerNameAttribute Class

Indicates the name by which an indexer is known in programming languages that do not support indexers directly.

See Also: IndexerNameAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Property, Inherited=true)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class IndexerNameAttribute : Attribute

Remarks

You can apply this attribute to properties.

This attribute is directly processed by the compiler, and cannot be accessed after compilation through Reflection.

The classes in System.Runtime.CompilerServices are for compiler writers use only.

Requirements

Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0