26 instantiations of BigInteger
System.Core (4)
System\Security\Cryptography\NCryptNative.cs (2)
1880x = new BigInteger(ReverseBytes(blob, 2 * sizeof(int), parameterSize, true)); 1881y = new BigInteger(ReverseBytes(blob, 2 * sizeof(int) + parameterSize, parameterSize, true));
System\Security\Cryptography\Rfc4050KeyFormatter.cs (2)
336BigInteger x = new BigInteger(xBytes); 337BigInteger y = new BigInteger(yBytes);
System.Numerics (22)
System\Numerics\BigInteger.cs (20)
46private static readonly BigInteger s_bnMinInt = new BigInteger(-1, new uint[] { kuMaskHighBit }); 47private static readonly BigInteger s_bnOneInt = new BigInteger(1); 48private static readonly BigInteger s_bnZeroInt = new BigInteger(0); 49private static readonly BigInteger s_bnMinusOneInt = new BigInteger(-1); 1133return new BigInteger(value); 1139return new BigInteger(value); 1144return new BigInteger(value); 1150return new BigInteger(value); 1156return new BigInteger(value); 1162return new BigInteger(value); 1167return new BigInteger(value); 1173return new BigInteger(value); 1178return new BigInteger(value); 1183return new BigInteger(value); 1188return new BigInteger(value); 1349return new BigInteger(z); 1369return new BigInteger(z); 1385return new BigInteger(z); 1419return new BigInteger(zd, negx); 1467return new BigInteger(zd, negx);
System\Numerics\BigIntegerBuilder.cs (1)
130return new BigInteger(sign, bits);
System\Numerics\BigNumber.cs (1)
411value = new BigInteger(bits);
260 references to BigInteger
System.Core (10)
System\Security\Cryptography\NCryptNative.cs (4)
938internal static byte[] BuildEccPublicBlob(string algorithm, BigInteger x, BigInteger y) { 1865internal static void UnpackEccPublicBlob(byte[] blob, out BigInteger x, out BigInteger y) {
System\Security\Cryptography\Rfc4050KeyFormatter.cs (6)
175BigInteger x = BigInteger.Parse(navigator.Value, CultureInfo.InvariantCulture); 186BigInteger y = BigInteger.Parse(navigator.Value, CultureInfo.InvariantCulture); 336BigInteger x = new BigInteger(xBytes); 337BigInteger y = new BigInteger(yBytes);
System.Data (60)
fx\src\data\System\Data\Common\BigIntegerStorage.cs (33)
18private BigInteger[] values; 21: base(column, typeof(BigInteger), BigInteger.Zero, StorageType.BigInteger) 30BigInteger valueNo1 = values[recordNo1]; 31BigInteger valueNo2 = values[recordNo2]; 51BigInteger valueNo1 = values[recordNo]; 56return valueNo1.CompareTo((BigInteger)value); 60internal static BigInteger ConvertToBigInteger(object value, IFormatProvider formatProvider) { 61if (value.GetType() == typeof(BigInteger)) { return (BigInteger)value; } 62else if (value.GetType() == typeof(String)) { return BigInteger.Parse((string)value, formatProvider); } 63else if (value.GetType() == typeof(Int64)) { return (BigInteger)(Int64)value; } 64else if (value.GetType() == typeof(Int32)) { return (BigInteger)(Int32)value; } 65else if (value.GetType() == typeof(Int16)) { return (BigInteger)(Int16)value; } 66else if (value.GetType() == typeof(SByte)) { return (BigInteger)(SByte)value; } 67else if (value.GetType() == typeof(UInt64)) { return (BigInteger)(UInt64)value; } 68else if (value.GetType() == typeof(UInt32)) { return (BigInteger)(UInt32)value; } 69else if (value.GetType() == typeof(UInt16)) { return (BigInteger)(UInt16)value; } 70else if (value.GetType() == typeof(Byte)) { return (BigInteger)(Byte)value; } 71else { throw ExceptionBuilder.ConvertFailed(value.GetType(), typeof(System.Numerics.BigInteger)); } 74internal static object ConvertFromBigInteger(BigInteger value, Type type, IFormatProvider formatProvider) { 87else if (type == typeof(System.Numerics.BigInteger)) { return value; } 88else { throw ExceptionBuilder.ConvertFailed(typeof(System.Numerics.BigInteger), type); } 109BigInteger value = values[record]; 119values[record] = BigInteger.Zero; 129BigInteger[] newValues = new BigInteger[capacity]; 138return BigInteger.Parse(s, System.Globalization.CultureInfo.InvariantCulture); 142return ((BigInteger)value).ToString("D", System.Globalization.CultureInfo.InvariantCulture); 146return new BigInteger[recordCount]; 150BigInteger[] typedStore = (BigInteger[])store; 156values = (BigInteger[])store;
fx\src\data\System\Data\Common\DataStorage.cs (2)
96typeof(System.Numerics.BigInteger), 512dataType = typeof(System.Numerics.BigInteger);
fx\src\data\System\Data\Common\SQLConvert.cs (3)
418if (type == typeof(System.Numerics.BigInteger)) { 422else if (value is System.Numerics.BigInteger) { 423return BigIntegerStorage.ConvertFromBigInteger((System.Numerics.BigInteger)value, type, formatProvider);
fx\src\data\System\Data\DataColumn.cs (17)
265if ((System.Numerics.BigInteger)this.AutoIncrementSeed != BigIntegerStorage.ConvertToBigInteger(value, this.FormatProvider)) { 273return (this.autoInc ?? (this.autoInc = ((this.DataType == typeof(System.Numerics.BigInteger)) 556if (this.defaultValue is System.Numerics.BigInteger) { 557this.defaultValue = BigIntegerStorage.ConvertFromBigInteger((System.Numerics.BigInteger)this.defaultValue, value, this.FormatProvider); 559else if (typeof(System.Numerics.BigInteger) == value) { 608this.AutoInc.Current = (System.Numerics.BigInteger)(long)inc.Current; 611this.AutoInc.Current = checked((long)(System.Numerics.BigInteger)inc.Current); 1562return ((dataType == typeof(Int32)) || (dataType == typeof(Int64)) || (dataType == typeof(Int16)) || (dataType == typeof(Decimal)) || (dataType == typeof(System.Numerics.BigInteger)) || 1881Debug.Assert(null != value && DataColumn.IsAutoIncrementType(value.GetType()) && !(value is System.Numerics.BigInteger), "unexpected value for autoincrement"); 1888private bool BoundaryCheck(System.Numerics.BigInteger value) { 1896private System.Numerics.BigInteger current; 1902private System.Numerics.BigInteger step = 1; 1907set { this.current = (System.Numerics.BigInteger)value; } 1910internal override Type DataType { get { return typeof(System.Numerics.BigInteger); } } 1949System.Numerics.BigInteger v = (System.Numerics.BigInteger)value; 1955private bool BoundaryCheck(System.Numerics.BigInteger value) {
fx\src\data\System\Data\xmlsaver.cs (5)
84else if (entry.Value is System.Numerics.BigInteger) { 85v = (string)BigIntegerStorage.ConvertFromBigInteger((System.Numerics.BigInteger)entry.Value, typeof(string), CultureInfo.InvariantCulture); 178if(bIsSqlType || (col.DataType == typeof(System.Numerics.BigInteger))) { 238if (type == typeof(System.Numerics.BigInteger)) 1137if ((col.IsSqlType && ((dt.Length == 0) || col.ImplementsINullable)) || (typeof(SqlXml) == col.DataType) || col.DataType == typeof(DateTimeOffset) || col.DataType == typeof(System.Numerics.BigInteger)) { // no need to check if it is Sql typee if it already implements INullable,
System.Numerics (190)
System\Numerics\BigInteger.cs (175)
27public struct BigInteger : IFormattable, IComparable, IComparable<BigInteger>, IEquatable<BigInteger> 46private static readonly BigInteger s_bnMinInt = new BigInteger(-1, new uint[] { kuMaskHighBit }); 47private static readonly BigInteger s_bnOneInt = new BigInteger(1); 48private static readonly BigInteger s_bnZeroInt = new BigInteger(0); 49private static readonly BigInteger s_bnMinusOneInt = new BigInteger(-1); 80public static BigInteger Zero 85public static BigInteger One 90public static BigInteger MinusOne 139if (!(obj is BigInteger)) 141return Equals((BigInteger)obj); 192public bool Equals(BigInteger other) 242public int CompareTo(BigInteger other) 276if (!(obj is BigInteger)) 278return this.CompareTo((BigInteger)obj); 809public static BigInteger Parse(String value) { 813public static BigInteger Parse(String value, NumberStyles style) { 817public static BigInteger Parse(String value, IFormatProvider provider) { 821 public static BigInteger Parse(String value, NumberStyles style, IFormatProvider provider) { 825public static Boolean TryParse(String value, out BigInteger result) { 829public static Boolean TryParse(String value, NumberStyles style, IFormatProvider provider, out BigInteger result) { 834public static Int32 Compare(BigInteger left, BigInteger right) 839public static BigInteger Abs(BigInteger value) 841return (value >= BigInteger.Zero) ? value : -value; 844public static BigInteger Add(BigInteger left, BigInteger right) 849public static BigInteger Subtract(BigInteger left, BigInteger right) 854public static BigInteger Multiply(BigInteger left, BigInteger right) 859public static BigInteger Divide(BigInteger dividend, BigInteger divisor) 864public static BigInteger Remainder(BigInteger dividend, BigInteger divisor) 869public static BigInteger DivRem(BigInteger dividend, BigInteger divisor, out BigInteger remainder) 887public static BigInteger Negate(BigInteger value) 893public static Double Log(BigInteger value) 895return BigInteger.Log(value, Math.E); 899public static Double Log(BigInteger value, Double baseValue) 933public static Double Log10(BigInteger value) 935return BigInteger.Log(value, 10); 938public static BigInteger GreatestCommonDivisor(BigInteger left, BigInteger right) 945if (left._sign == 0) return BigInteger.Abs(right); 946if (right._sign == 0) return BigInteger.Abs(left); 955public static BigInteger Max(BigInteger left, BigInteger right) 962public static BigInteger Min(BigInteger left, BigInteger right) 1008public static BigInteger ModPow(BigInteger value, BigInteger exponent, BigInteger modulus) 1022BigIntegerBuilder regRes = new BigIntegerBuilder(BigInteger.One, ref signRes); 1047public static BigInteger Pow(BigInteger value, Int32 exponent) 1056return BigInteger.One; 1131public static implicit operator BigInteger(Byte value) 1137public static implicit operator BigInteger(SByte value) 1142public static implicit operator BigInteger(Int16 value) 1148public static implicit operator BigInteger(UInt16 value) 1154public static implicit operator BigInteger(int value) 1160public static implicit operator BigInteger(uint value) 1165public static implicit operator BigInteger(long value) 1171public static implicit operator BigInteger(ulong value) 1176public static explicit operator BigInteger(Single value) 1181public static explicit operator BigInteger(Double value) 1186public static explicit operator BigInteger(Decimal value) 1191public static explicit operator Byte(BigInteger value) 1197public static explicit operator SByte(BigInteger value) 1202public static explicit operator Int16(BigInteger value) 1208public static explicit operator UInt16(BigInteger value) 1213public static explicit operator Int32(BigInteger value) 1234public static explicit operator UInt32(BigInteger value) 1248public static explicit operator Int64(BigInteger value) 1277public static explicit operator UInt64(BigInteger value) 1297public static explicit operator Single(BigInteger value) 1302public static explicit operator Double(BigInteger value) 1316public static explicit operator Decimal(BigInteger value) 1333public static BigInteger operator &(BigInteger left, BigInteger right) { 1335return BigInteger.Zero; 1352public static BigInteger operator |(BigInteger left, BigInteger right) { 1372public static BigInteger operator ^(BigInteger left, BigInteger right) { 1389public static BigInteger operator <<(BigInteger value, int shift) { 1422public static BigInteger operator >>(BigInteger value, int shift) { 1435return BigInteger.MinusOne; 1471public static BigInteger operator ~(BigInteger value) { 1472return -(value + BigInteger.One); 1475public static BigInteger operator -(BigInteger value) 1483public static BigInteger operator +(BigInteger value) 1490public static BigInteger operator ++(BigInteger value) 1492return value + BigInteger.One; 1495public static BigInteger operator --(BigInteger value) 1497return value - BigInteger.One; 1501public static BigInteger operator +(BigInteger left, BigInteger right) 1522public static BigInteger operator -(BigInteger left, BigInteger right) 1543public static BigInteger operator *(BigInteger left, BigInteger right) 1556public static BigInteger operator /(BigInteger dividend, BigInteger divisor) 1569public static BigInteger operator %(BigInteger dividend, BigInteger divisor) 1583public static bool operator <(BigInteger left, BigInteger right) 1587public static bool operator <=(BigInteger left, BigInteger right) 1591public static bool operator >(BigInteger left, BigInteger right) 1595public static bool operator >=(BigInteger left, BigInteger right) 1599public static bool operator ==(BigInteger left, BigInteger right) 1603public static bool operator !=(BigInteger left, BigInteger right) 1608public static bool operator <(BigInteger left, Int64 right) 1612public static bool operator <=(BigInteger left, Int64 right) 1616public static bool operator >(BigInteger left, Int64 right) 1620public static bool operator >=(BigInteger left, Int64 right) 1624public static bool operator ==(BigInteger left, Int64 right) 1628public static bool operator !=(BigInteger left, Int64 right) 1633public static bool operator <(Int64 left, BigInteger right) 1637public static bool operator <=(Int64 left, BigInteger right) 1641public static bool operator >(Int64 left, BigInteger right) 1645public static bool operator >=(Int64 left, BigInteger right) 1649public static bool operator ==(Int64 left, BigInteger right) 1653public static bool operator !=(Int64 left, BigInteger right) 1659public static bool operator <(BigInteger left, UInt64 right) 1664public static bool operator <=(BigInteger left, UInt64 right) 1669public static bool operator >(BigInteger left, UInt64 right) 1674public static bool operator >=(BigInteger left, UInt64 right) 1679public static bool operator ==(BigInteger left, UInt64 right) 1684public static bool operator !=(BigInteger left, UInt64 right) 1690public static bool operator <(UInt64 left, BigInteger right) 1695public static bool operator <=(UInt64 left, BigInteger right) 1700public static bool operator >(UInt64 left, BigInteger right) 1705public static bool operator >=(UInt64 left, BigInteger right) 1710public static bool operator ==(UInt64 left, BigInteger right) 1715public static bool operator !=(UInt64 left, BigInteger right) 1741this = BigInteger.Zero; 1752this = BigInteger.Zero; 1830private static bool GetPartsForBitManipulation(ref BigInteger x, out uint[] xd, out int xl) {
System\Numerics\BigIntegerBuilder.cs (4)
87public BigIntegerBuilder(BigInteger bn) { 103public BigIntegerBuilder(BigInteger bn, ref int sign) { 124public BigInteger GetInteger(int sign) { 510_iuLast = BigInteger.GetDiffLength(_rgu, reg._rgu, _iuLast + 1) - 1;
System\Numerics\BigNumber.cs (10)
322internal unsafe static Boolean TryParseBigInteger(String value, NumberStyles style, NumberFormatInfo info, out BigInteger result) { 323result = BigInteger.Zero; 353internal unsafe static BigInteger ParseBigInteger(String value, NumberStyles style, NumberFormatInfo info) { 361BigInteger result = BigInteger.Zero; 368private unsafe static Boolean HexNumberToBigInteger(ref BigNumberBuffer number, ref BigInteger value) { 415private unsafe static Boolean NumberToBigInteger(ref BigNumberBuffer number, ref BigInteger value) { 465private static String FormatBigIntegerToHexString(BigInteger value, char format, int digits, NumberFormatInfo info) { 512static String FormatBigInteger(BigInteger value, String format, NumberFormatInfo info) { 542int cuSrc = BigInteger.Length(value._bits);
System\Numerics\Complex.cs (1)
248public static explicit operator Complex(BigInteger value) {