Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <mabaul@microsoft.com>2018-05-11 01:04:26 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2018-05-11 01:04:26 +0300
commitc6158d4a0092e09c114712fc79e6cd66de5e9169 (patch)
tree844250d3a0c6b66f42105bc6358952438a629d8c /mcs/class/System.Numerics
parentbaf58ed6ebfc24811ec00c4d3f7a264c9cf71a7c (diff)
[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
Diffstat (limited to 'mcs/class/System.Numerics')
-rw-r--r--mcs/class/System.Numerics/Test/System.Numerics/BigIntegerTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Numerics/Test/System.Numerics/BigIntegerTest.cs b/mcs/class/System.Numerics/Test/System.Numerics/BigIntegerTest.cs
index fe4189cbc8a..b29fa9909c3 100644
--- a/mcs/class/System.Numerics/Test/System.Numerics/BigIntegerTest.cs
+++ b/mcs/class/System.Numerics/Test/System.Numerics/BigIntegerTest.cs
@@ -974,7 +974,7 @@ namespace MonoTests.System.Numerics
[Test]
public void TryParse () {
BigInteger x = BigInteger.One;
- Assert.IsFalse (BigInteger.TryParse (null, out x), "#1");
+ Assert.IsFalse (BigInteger.TryParse ((string)null, out x), "#1");
Assert.AreEqual (0, (int)x, "#1a");
Assert.IsFalse (BigInteger.TryParse ("", out x), "#2");
Assert.IsFalse (BigInteger.TryParse (" ", out x), "#3");