[corlib]: Misc updates from CoreFX. (#8614)
commitc6158d4a0092e09c114712fc79e6cd66de5e9169
authorMartin Baulig <mabaul@microsoft.com>
Thu, 10 May 2018 22:04:26 +0000 (10 18:04 -0400)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 10 May 2018 22:04:26 +0000 (11 00:04 +0200)
tree844250d3a0c6b66f42105bc6358952438a629d8c
parentbaf58ed6ebfc24811ec00c4d3f7a264c9cf71a7c
[corlib]: Misc updates from CoreFX. (#8614)

* [corlib]: Misc updates from CoreFX.

* CancellationTokenRegistration: use the CoreFX version.

* String: add `implicit operator String (ReadOnlySpan<char> value)`.

* TimeSpan: add `TimeSpan operator / (TimeSpan timeSpan, double divisor)`
  and `double operator /(TimeSpan t1, TimeSpan t2)`.

* BitConverter: add `uint ToUInt32(ReadOnlySpan<byte> value)` and
  `ulong ToUInt64(ReadOnlySpan<byte> value)`.

* Fix the tests.

* Bump API snapshot submodule

* [csproj] Update project files
external/api-snapshot
mcs/class/System.Numerics/Test/System.Numerics/BigIntegerTest.cs
mcs/class/corlib/ReferenceSources/String.cs
mcs/class/corlib/Test/System.IO/PathTest.cs
mcs/class/corlib/corlib.csproj
mcs/class/corlib/corlib.dll.sources
mcs/class/referencesource/mscorlib/system/bitconverter.cs
mcs/class/referencesource/mscorlib/system/timespan.cs