Span<T> api update (dotnet/coreclr#8583)
authorMatt Warren <matt.warren@live.co.uk>
Mon, 12 Dec 2016 17:30:58 +0000 (17:30 +0000)
committerJan Kotas <jkotas@microsoft.com>
Mon, 12 Dec 2016 17:30:58 +0000 (09:30 -0800)
commitc46858e6ed5b26382fa6883d9aad6cc365800896
tree39ce38567b19f0ff85f8fda19bd317bd3b759675
parentcbea78c94d0125487cea962d423c8e8e43774c44
Span<T> api update (dotnet/coreclr#8583)

* Changing method/property order to match CoreFX impl

To make diffing the files easier

* Added other missing methods to match CoreFX impl

Added:
- public void CopyTo(Span<T> destination)
- public static bool operator ==(Span<T> left, Span<T> right)
- public static bool operator !=(Span<T> left, Span<T> right)
- public override bool Equals(object obj)
- public override int GetHashCode()

Also removed 'public void Set(ReadOnlySpan<T> values)' and it's no
longer part of the Span<T> public API, see

https://github.com/dotnet/apireviews/tree/master/2016/11-04-SpanOfT#spantset

Commit migrated from https://github.com/dotnet/coreclr/commit/98798b78e2e3284409289c7253bac7b999c0ad88
src/coreclr/src/mscorlib/model.xml
src/coreclr/src/mscorlib/src/System.Private.CoreLib.txt
src/coreclr/src/mscorlib/src/System/Span.cs
src/coreclr/src/mscorlib/src/System/ThrowHelper.cs