Table of Contents

Class IndexerNameAttribute

Namespace
System.Runtime.CompilerServices
Assembly
mscorlib.dll

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

[AttributeUsage(AttributeTargets.Property)]
public sealed class IndexerNameAttribute : Attribute
Inheritance
IndexerNameAttribute
Inherited Members
Extension Methods

Constructors

IndexerNameAttribute(string)

Initializes a new instance of the IndexerNameAttribute class.

public IndexerNameAttribute(string indexerName)

Parameters

indexerName string

The name of the indexer, as shown to other languages.