System.Runtime.CompilerServices.IndexerNameAttribute Class

public sealed class IndexerNameAttribute: Attribute

Base Types

Object
  Attribute
    IndexerNameAttribute

Assembly

mscorlib

Library

RuntimeInfrastructure

Summary

This attribute is used to indicate the name by which an indexer is known in programming languages that do not support indexers directly.

Description

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

]

Attributes

AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple=false, Inherited=false)

See Also

System.Runtime.CompilerServices Namespace

Members

IndexerNameAttribute Constructors

IndexerNameAttribute Constructor


IndexerNameAttribute Constructor

public IndexerNameAttribute(string indexerName)

Summary

Constructs and initializes a new instance of the IndexerNameAttribute class with the specified indexer name value.

Parameters

indexerName
A String value that specifies the name by which this indexer is known in programming languages that do not support indexers directly.

See Also

System.Runtime.CompilerServices.IndexerNameAttribute Class, System.Runtime.CompilerServices Namespace