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