Skip to content

Commit e640a90

Browse files
RexJaeschkeBillWagner
authored andcommitted
fix formatting
1 parent 2fb1061 commit e640a90

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

standard/classes.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5143,6 +5143,7 @@ A type having an instance indexer taking a single argument of type `System.Index
51435143
#### §indexable-sequence-impl-support-for-index Implicit Index support
51445144
51455145
An implementation shall behave as if it provides an instance indexer member with a single parameter of type `System.Index` for any type that meets the following criteria:
5146+
51465147
- The type is countable [§14.7.1](classes.md#1471-general).
51475148
- The type has an accessible instance indexer taking an argument of type `int` as its only argument, or as its first argument with the remaining arguments being optional.
51485149
- The type does not have an accessible instance indexer taking a `System.Index` as its only argument, or as its first argument with the remaining arguments being optional.
@@ -5191,10 +5192,11 @@ A type having an instance indexer taking a single argument of type `System.Range
51915192
#### §indexable-sequence-impl-support-for-range Implicit Range support
51925193
51935194
An implementation shall behave as if it provides an instance indexer member with a single parameter of type `System.Range` for any type that meets the following criteria:
5195+
51945196
- The type is countable [§14.7.1](classes.md#1471-general).
51955197
- The type has an accessible instance method named `Slice` taking two arguments of type `int` as the only arguments. For type `string`, the method `Substring` is used instead of `Slice`.
5196-
> *Note*: As specified in11.7.10.2](expressions.md#117102-array-access), for array access, the method `System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray` is used instead of `Slice`. *end note*
5197-
- The type does not have an accessible instance indexer taking a `System.Range` as its only argument, or as its first argument with the remaining arguments being optional.
5198+
> *Note*: As specified in11.7.10.2](expressions.md#117102-array-access), for array access, the method `System.Runtime.CompilerServices.RuntimeHelpers.GetSubArray` is used instead of `Slice`. *end note*
5199+
- The type does not have an accessible instance indexer taking a `System.Range` as its only argument, or as its first argument with the remaining arguments being optional.
51985200
51995201
The provided instance indexer shall have the same accessibility and return type, including `ref` if present, as `Slice`.
52005202

0 commit comments

Comments
 (0)