Skip to content

Commit ff43a49

Browse files
RexJaeschkejskeet
andauthored
Reverse some V7 edits w.r.t Indexers (#970)
* reverse some V7 edits * Update standard/classes.md --------- Co-authored-by: Jon Skeet <[email protected]>
1 parent 9965cce commit ff43a49

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

standard/classes.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4192,8 +4192,6 @@ The *type* of an indexer declaration specifies the element type of the indexer i
41924192

41934193
> *Note*: As indexers are designed to be used in array element-like contexts, the term *element type* as defined for an array is also used with an indexer. *end note*
41944194
4195-
The *formal_parameter_list* specifies the parameters of the indexer. The formal parameter list of an indexer corresponds to that of a method ([§15.6.2](classes.md#1562-method-parameters)), except that at least one parameter shall be specified, and that the `this`, `out`, and `ref` parameter modifiers are not permitted.
4196-
41974195
Unless the indexer is an explicit interface member implementation, the *type* is followed by the keyword `this`. For an explicit interface member implementation, the *type* is followed by an *interface_type*, a “`.`”, and the keyword `this`. Unlike other members, indexers do not have user-defined names.
41984196

41994197
The *formal_parameter_list* specifies the parameters of the indexer. The formal parameter list of an indexer corresponds to that of a method ([§15.6.2](classes.md#1562-method-parameters)), except that at least one parameter shall be specified, and that the `this`, `ref`, and `out` parameter modifiers are not permitted.
@@ -4363,7 +4361,7 @@ Indexers and properties are very similar in concept, but differ in the following
43634361
43644362
Aside from these differences, all rules defined in15.7.3](classes.md#1573-accessors), [§15.7.5](classes.md#1575-accessibility) and15.7.6](classes.md#1576-virtual-sealed-override-and-abstract-accessors) apply to indexer accessors as well as to property accessors.
43654363
4366-
*Note*: This replacing of property/properties with indexer/indexers when reading15.7.3](classes.md#1573-accessors), [§15.7.5](classes.md#1575-accessibility) and15.7.6](classes.md#1576-virtual-sealed-override-and-abstract-accessors) applies to defined terms as well. For example *read-write property* becomes *read-write-indexer*. *end note*
4364+
This replacing of property/properties with indexer/indexers when reading15.7.3](classes.md#1573-accessors), [§15.7.5](classes.md#1575-accessibility) and15.7.6](classes.md#1576-virtual-sealed-override-and-abstract-accessors) applies to defined terms as well. Specifically, *read-write property* becomes ***read-write indexer***, *read-only property* becomes ***read-only indexer***, and *write-only property* becomes ***write-only indexer***.
43674365
43684366
## 15.10 Operators
43694367

0 commit comments

Comments
 (0)