Update the types consumers of Index and Range (#24036)
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Wed, 17 Apr 2019 16:54:51 +0000 (17:54 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2019 16:54:51 +0000 (17:54 +0100)
commit35172e140236d5197a4d7d19f46d627dd6c119c1
treec36b4c4d07d8b9926f7c7cb8bbda75787cb50d6f
parentdf2f4c4feb273545e91fd8d7d170dc424b741f19
Update the types consumers of Index and Range (#24036)

* Update the types consumers of Index and Range

The C# compiler now can automatically support the indexers with Index and Range parameters on any type meet the conditions:
- The type exposes Length or Count property which returning integer.
- The type has indexer of integer parameter.
- The type has a Slice method which takes 2 integers

The change here is to remove the methods and indexers of the types which we previously added it as the compiler will automatically provide those.

* Remove the JIT failing test
src/System.Private.CoreLib/shared/System/Memory.cs
src/System.Private.CoreLib/shared/System/ReadOnlyMemory.cs
src/System.Private.CoreLib/shared/System/ReadOnlySpan.Fast.cs
src/System.Private.CoreLib/shared/System/Span.Fast.cs
src/System.Private.CoreLib/shared/System/String.Manipulation.cs
src/System.Private.CoreLib/shared/System/String.cs
src/System.Private.CoreLib/src/System/Utf8String.Manipulation.cs
src/System.Private.CoreLib/src/System/Utf8String.cs
tests/src/JIT/Regression/JitBlue/GitHub_20958/GitHub_20958.cs [deleted file]
tests/src/JIT/Regression/JitBlue/GitHub_20958/GitHub_20958.csproj [deleted file]