A keen indexer_muscles may either integrate an accessor human body (§fourteen

A keen indexer_muscles may either integrate an accessor human body (§fourteen

The kind of an indexer each of one’s models referenced about authoritative_parameter_listing is going to be at the least while the accessible because indexer in itself (§7.5.5).

eight.1) otherwise an expression body (§14.six.1). 7.3) of indexer. The latest accessors indicate the newest executable comments associated with the training and you will writing indexer points.

An expression body consisting of ” => ” followed by an expression E and a semicolon is exactly equivalent to the block body < get>> , and can therefore only be used to specify getter-only indexers where the result of the getter is given by a single expression.

Although the sentence structure to possess opening an indexer ability is the same as you to getting an array feature, an enthusiastic indexer element is not categorized just like the a variable. Hence, it is not it is possible to to pass an enthusiastic indexer element as a great ref or aside dispute.Read More