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
@@ -5244,6 +5244,7 @@ A type having an instance indexer taking a single argument of type `System.Index
5244
5244
#### §indexable-sequence-impl-support-for-index Implicit Index support
5245
5245
5246
5246
Animplementationshallbehaveasifitprovidesaninstanceindexermemberwithasingleparameteroftype `System.Index` for any type that meets the following criteria:
5247
+
5247
5248
- The type is countable [§14.7.1](classes.md#1471-general).
@@ -5292,10 +5293,11 @@ A type having an instance indexer taking a single argument of type `System.Range
5292
5293
#### §indexable-sequence-impl-support-for-range Implicit Range support
5293
5294
5294
5295
Animplementationshallbehaveasifitprovidesaninstanceindexermemberwithasingleparameteroftype `System.Range` for any type that meets the following criteria:
5296
+
5295
5297
- 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*
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*: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*
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.
5299
5301
5300
5302
The provided instance indexer shall have the same accessibility and return type, including `ref` if present, as `Slice`.
0 commit comments