Skip to content

Commit a9dfa92

Browse files
RexJaeschkeBillWagner
authored andcommitted
fix formatting
1 parent b61821d commit a9dfa92

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
@@ -5244,6 +5244,7 @@ A type having an instance indexer taking a single argument of type `System.Index
52445244
#### §indexable-sequence-impl-support-for-index Implicit Index support
52455245
52465246
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:
5247+
52475248
- The type is countable [§14.7.1](classes.md#1471-general).
52485249
- 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.
52495250
- 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.
@@ -5292,10 +5293,11 @@ A type having an instance indexer taking a single argument of type `System.Range
52925293
#### §indexable-sequence-impl-support-for-range Implicit Range support
52935294
52945295
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:
5296+
52955297
- The type is countable [§14.7.1](classes.md#1471-general).
52965298
- 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`.
5297-
> *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*
5298-
- 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.
5299+
> *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*
5300+
- 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.
52995301
53005302
The provided instance indexer shall have the same accessibility and return type, including `ref` if present, as `Slice`.
53015303

0 commit comments

Comments
 (0)