You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: standard/classes.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5143,6 +5143,7 @@ A type having an instance indexer taking a single argument of type `System.Index
5143
5143
#### §indexable-sequence-impl-support-for-index Implicit Index support
5144
5144
5145
5145
Animplementationshallbehaveasifitprovidesaninstanceindexermemberwithasingleparameteroftype `System.Index` for any type that meets the following criteria:
5146
+
5146
5147
- The type is countable [§14.7.1](classes.md#1471-general).
@@ -5191,10 +5192,11 @@ A type having an instance indexer taking a single argument of type `System.Range
5191
5192
#### §indexable-sequence-impl-support-for-range Implicit Range support
5192
5193
5193
5194
Animplementationshallbehaveasifitprovidesaninstanceindexermemberwithasingleparameteroftype `System.Range` for any type that meets the following criteria:
5195
+
5194
5196
- The type is countable [§14.7.1](classes.md#1471-general).
> *Note*:Asspecifiedin [§11.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*:Asspecifiedin [§11.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.
5198
5200
5199
5201
The provided instance indexer shall have the same accessibility and return type, including `ref` if present, as `Slice`.
0 commit comments