Span<T> api update (#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)
commit98798b78e2e3284409289c7253bac7b999c0ad88
treee363f2f1d5516cb36f3920c531b67ad3a1efe2ff
parent5dbaa3cb2e2e11d98924afe9de472469b5136885
Span<T> api update (#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
src/mscorlib/model.xml
src/mscorlib/src/System.Private.CoreLib.txt
src/mscorlib/src/System/Span.cs
src/mscorlib/src/System/ThrowHelper.cs