Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ operator ulong()

static System.Numerics.BigInteger.operator ulong ( BigInteger value)
inlineexplicitstatic

Definition at line 1524 of file BigInteger.cs.

1525 {
1526 if (value._bits == null)
1527 {
1528 return checked((ulong)value._sign);
1529 }
1530 int num = value._bits.Length;
1531 if (num > 2 || value._sign < 0)
1532 {
1533 throw new OverflowException(System.SR.Overflow_UInt64);
1534 }
1535 if (num > 1)
1536 {
1537 return NumericsHelpers.MakeUlong(value._bits[1], value._bits[0]);
1538 }
1539 return value._bits[0];
1540 }
static string Overflow_UInt64
Definition SR.cs:1790
Definition SR.cs:7

References System.Numerics.NumericsHelpers.MakeUlong(), System.SR.Overflow_UInt64, and System.value.