You've already forked linux-packaging-mono
Imported Upstream version 5.8.0.22
Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
This commit is contained in:
parent
5f4a27cc8a
commit
7d05485754
@@ -23,8 +23,8 @@ namespace System.Numerics
|
||||
|
||||
// For values int.MinValue < n <= int.MaxValue, the value is stored in sign
|
||||
// and _bits is null. For all other values, sign is +1 or -1 and the bits are in _bits
|
||||
internal readonly int _sign;
|
||||
internal readonly uint[] _bits;
|
||||
internal readonly int _sign; // Do not rename (binary serialization)
|
||||
internal readonly uint[] _bits; // Do not rename (binary serialization)
|
||||
|
||||
// We have to make a choice of how to represent int.MinValue. This is the one
|
||||
// value that fits in an int, but whose negation does not fit in an int.
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace System.Numerics
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
#if !MONO
|
||||
[System.Runtime.CompilerServices.TypeForwardedFrom("System.Numerics, Version=4.0.0.0, PublicKeyToken=b77a5c561934e089")]
|
||||
[System.Runtime.CompilerServices.TypeForwardedFrom("System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
|
||||
#endif
|
||||
public struct Complex : IEquatable<Complex>, IFormattable
|
||||
{
|
||||
@@ -34,9 +34,9 @@ namespace System.Numerics
|
||||
private static readonly double s_log2 = Math.Log(2.0);
|
||||
|
||||
// Do not rename, these fields are needed for binary serialization
|
||||
private double m_real;
|
||||
private double m_imaginary;
|
||||
|
||||
private double m_real; // Do not rename (binary serialization)
|
||||
private double m_imaginary; // Do not rename (binary serialization)
|
||||
|
||||
public Complex(double real, double imaginary)
|
||||
{
|
||||
m_real = real;
|
||||
|
||||
@@ -69,11 +69,11 @@ namespace System.Numerics.Tests
|
||||
//invalid number style
|
||||
// ******InvalidNumberStyles
|
||||
NumberStyles invalid = (NumberStyles)0x7c00;
|
||||
Assert.Throws<ArgumentException>(() =>
|
||||
AssertExtensions.Throws<ArgumentException>(null, () =>
|
||||
{
|
||||
BigInteger.Parse("1", invalid).ToString("d");
|
||||
});
|
||||
Assert.Throws<ArgumentException>(() =>
|
||||
AssertExtensions.Throws<ArgumentException>(null, () =>
|
||||
{
|
||||
BigInteger junk;
|
||||
BigInteger.TryParse("1", invalid, null, out junk);
|
||||
|
||||
@@ -53,9 +53,6 @@
|
||||
<Compile Include="BigInteger\stackcalculator.cs" />
|
||||
<Compile Include="BigInteger\ToByteArray.cs" />
|
||||
<Compile Include="ComplexTests.cs" />
|
||||
<Compile Include="$(CommonTestPath)\System\AssertExtensions.cs">
|
||||
<Link>Common\System\AssertExtensions.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="$(CommonTestPath)\System\PlatformDetection.cs">
|
||||
<Link>Common\System\PlatformDetection.cs</Link>
|
||||
</Compile>
|
||||
|
||||
Reference in New Issue
Block a user