Refactor AsSpan to AsReadOnlySpan (dotnet/coreclr#13608)
authorAdrian Godong <adrian.godong@gmail.com>
Mon, 28 Aug 2017 03:24:02 +0000 (20:24 -0700)
committerJan Kotas <jkotas@microsoft.com>
Mon, 28 Aug 2017 03:24:02 +0000 (20:24 -0700)
commitc3f386f7a3f2617cf65298cd5538daac554f5704
tree51a2703b765dd224b0ca3f07614a93066a01c11e
parente04b000ca02cd373d12a560e5dffdf819dfc0d21
Refactor AsSpan to AsReadOnlySpan (dotnet/coreclr#13608)

* Refactor AsSpan to AsReadOnlySpan
* Updated usages.
* Renamed test methods.
* Bring back AsSpan as obsolete method.

Commit migrated from https://github.com/dotnet/coreclr/commit/02f0853126d690910fc378a672dd008c69f5bbbe
20 files changed:
src/coreclr/src/mscorlib/shared/System/Boolean.cs
src/coreclr/src/mscorlib/shared/System/Byte.cs
src/coreclr/src/mscorlib/shared/System/Double.cs
src/coreclr/src/mscorlib/shared/System/Globalization/HijriCalendar.Win32.cs
src/coreclr/src/mscorlib/shared/System/Globalization/JapaneseCalendar.Win32.cs
src/coreclr/src/mscorlib/shared/System/Int16.cs
src/coreclr/src/mscorlib/shared/System/Int32.cs
src/coreclr/src/mscorlib/shared/System/Int64.cs
src/coreclr/src/mscorlib/shared/System/SByte.cs
src/coreclr/src/mscorlib/shared/System/Single.cs
src/coreclr/src/mscorlib/shared/System/Span.NonGeneric.cs
src/coreclr/src/mscorlib/shared/System/StringSpanHelpers.cs
src/coreclr/src/mscorlib/shared/System/UInt16.cs
src/coreclr/src/mscorlib/shared/System/UInt32.cs
src/coreclr/src/mscorlib/shared/System/UInt64.cs
src/coreclr/src/mscorlib/shared/System/Version.cs
src/coreclr/src/mscorlib/src/System/Decimal.cs
src/coreclr/src/mscorlib/src/System/Number.cs
src/coreclr/src/mscorlib/src/System/TimeZoneInfo.Unix.cs
src/coreclr/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs