11 implementations of IBinaryIntegerParseAndFormatInfo
System.Private.CoreLib (11)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
27
IBinaryIntegerParseAndFormatInfo
<byte>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
34
IBinaryIntegerParseAndFormatInfo
<char>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
22
IBinaryIntegerParseAndFormatInfo
<Int128>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<short>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<int>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<long>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<sbyte>
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
24
IBinaryIntegerParseAndFormatInfo
<UInt128>
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<ushort>
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<uint>
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<ulong>
102 references to IBinaryIntegerParseAndFormatInfo
System.Private.CoreLib (102)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (8)
1219
static bool
IBinaryIntegerParseAndFormatInfo
<byte>.IsSigned => false;
1221
static int
IBinaryIntegerParseAndFormatInfo
<byte>.MaxDigitCount => 3; // 255
1223
static int
IBinaryIntegerParseAndFormatInfo
<byte>.MaxHexDigitCount => 2; // 0xFF
1225
static byte
IBinaryIntegerParseAndFormatInfo
<byte>.MaxValueDiv10 => MaxValue / 10;
1227
static string
IBinaryIntegerParseAndFormatInfo
<byte>.OverflowMessage => SR.Overflow_Byte;
1229
static bool
IBinaryIntegerParseAndFormatInfo
<byte>.IsGreaterThanAsUnsigned(byte left, byte right) => left > right;
1231
static byte
IBinaryIntegerParseAndFormatInfo
<byte>.MultiplyBy10(byte value) => (byte)(value * 10);
1233
static byte
IBinaryIntegerParseAndFormatInfo
<byte>.MultiplyBy16(byte value) => (byte)(value * 16);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (8)
2088
static bool
IBinaryIntegerParseAndFormatInfo
<char>.IsSigned => false;
2090
static int
IBinaryIntegerParseAndFormatInfo
<char>.MaxDigitCount => 5; // 65_535
2092
static int
IBinaryIntegerParseAndFormatInfo
<char>.MaxHexDigitCount => 4; // 0xFFFF
2094
static char
IBinaryIntegerParseAndFormatInfo
<char>.MaxValueDiv10 => (char)(MaxValue / 10);
2096
static string
IBinaryIntegerParseAndFormatInfo
<char>.OverflowMessage => SR.Overflow_Char;
2098
static bool
IBinaryIntegerParseAndFormatInfo
<char>.IsGreaterThanAsUnsigned(char left, char right) => left > right;
2100
static char
IBinaryIntegerParseAndFormatInfo
<char>.MultiplyBy10(char value) => (char)(value * 10);
2102
static char
IBinaryIntegerParseAndFormatInfo
<char>.MultiplyBy16(char value) => (char)(value * 16);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Enum.cs (2)
916
where TUnderlying : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TUnderlying>
917
where TStorage : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TStorage>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (8)
2138
static bool
IBinaryIntegerParseAndFormatInfo
<Int128>.IsSigned => true;
2140
static int
IBinaryIntegerParseAndFormatInfo
<Int128>.MaxDigitCount => 39; // 170_141_183_460_469_231_731_687_303_715_884_105_727
2142
static int
IBinaryIntegerParseAndFormatInfo
<Int128>.MaxHexDigitCount => 32; // 0x7FFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF
2144
static Int128
IBinaryIntegerParseAndFormatInfo
<Int128>.MaxValueDiv10 => new Int128(0x0CCC_CCCC_CCCC_CCCC, 0xCCCC_CCCC_CCCC_CCCC);
2146
static string
IBinaryIntegerParseAndFormatInfo
<Int128>.OverflowMessage => SR.Overflow_Int128;
2148
static bool
IBinaryIntegerParseAndFormatInfo
<Int128>.IsGreaterThanAsUnsigned(Int128 left, Int128 right) => (UInt128)(left) > (UInt128)(right);
2150
static Int128
IBinaryIntegerParseAndFormatInfo
<Int128>.MultiplyBy10(Int128 value) => value * 10;
2152
static Int128
IBinaryIntegerParseAndFormatInfo
<Int128>.MultiplyBy16(Int128 value) => value * 16;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (8)
1413
static bool
IBinaryIntegerParseAndFormatInfo
<short>.IsSigned => true;
1415
static int
IBinaryIntegerParseAndFormatInfo
<short>.MaxDigitCount => 5; // 32_767
1417
static int
IBinaryIntegerParseAndFormatInfo
<short>.MaxHexDigitCount => 4; // 0x7FFF
1419
static short
IBinaryIntegerParseAndFormatInfo
<short>.MaxValueDiv10 => MaxValue / 10;
1421
static string
IBinaryIntegerParseAndFormatInfo
<short>.OverflowMessage => SR.Overflow_Int16;
1423
static bool
IBinaryIntegerParseAndFormatInfo
<short>.IsGreaterThanAsUnsigned(short left, short right) => (ushort)(left) > (ushort)(right);
1425
static short
IBinaryIntegerParseAndFormatInfo
<short>.MultiplyBy10(short value) => (short)(value * 10);
1427
static short
IBinaryIntegerParseAndFormatInfo
<short>.MultiplyBy16(short value) => (short)(value * 16);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (8)
1464
static bool
IBinaryIntegerParseAndFormatInfo
<int>.IsSigned => true;
1466
static int
IBinaryIntegerParseAndFormatInfo
<int>.MaxDigitCount => 10; // 2_147_483_647
1468
static int
IBinaryIntegerParseAndFormatInfo
<int>.MaxHexDigitCount => 8; // 0x7FFF_FFFF
1470
static int
IBinaryIntegerParseAndFormatInfo
<int>.MaxValueDiv10 => MaxValue / 10;
1472
static string
IBinaryIntegerParseAndFormatInfo
<int>.OverflowMessage => SR.Overflow_Int32;
1474
static bool
IBinaryIntegerParseAndFormatInfo
<int>.IsGreaterThanAsUnsigned(int left, int right) => (uint)(left) > (uint)(right);
1476
static int
IBinaryIntegerParseAndFormatInfo
<int>.MultiplyBy10(int value) => value * 10;
1478
static int
IBinaryIntegerParseAndFormatInfo
<int>.MultiplyBy16(int value) => value * 16;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (8)
1467
static bool
IBinaryIntegerParseAndFormatInfo
<long>.IsSigned => true;
1469
static int
IBinaryIntegerParseAndFormatInfo
<long>.MaxDigitCount => 19; // 9_223_372_036_854_775_807
1471
static int
IBinaryIntegerParseAndFormatInfo
<long>.MaxHexDigitCount => 16; // 0x7FFF_FFFF_FFFF_FFFF
1473
static long
IBinaryIntegerParseAndFormatInfo
<long>.MaxValueDiv10 => MaxValue / 10;
1475
static string
IBinaryIntegerParseAndFormatInfo
<long>.OverflowMessage => SR.Overflow_Int64;
1477
static bool
IBinaryIntegerParseAndFormatInfo
<long>.IsGreaterThanAsUnsigned(long left, long right) => (ulong)(left) > (ulong)(right);
1479
static long
IBinaryIntegerParseAndFormatInfo
<long>.MultiplyBy10(long value) => value * 10;
1481
static long
IBinaryIntegerParseAndFormatInfo
<long>.MultiplyBy16(long value) => value * 16;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (12)
30
where TSelf : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TSelf>
194
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
255
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
269
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
292
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
314
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
604
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
614
internal readonly struct HexParser<TInteger> : IHexOrBinaryParser<TInteger> where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
624
private readonly struct BinaryParser<TInteger> : IHexOrBinaryParser<TInteger> where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
636
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
1697
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
1735
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (8)
1392
static bool
IBinaryIntegerParseAndFormatInfo
<sbyte>.IsSigned => true;
1394
static int
IBinaryIntegerParseAndFormatInfo
<sbyte>.MaxDigitCount => 3; // 127
1396
static int
IBinaryIntegerParseAndFormatInfo
<sbyte>.MaxHexDigitCount => 2; // 0x7F
1398
static sbyte
IBinaryIntegerParseAndFormatInfo
<sbyte>.MaxValueDiv10 => MaxValue / 10;
1400
static string
IBinaryIntegerParseAndFormatInfo
<sbyte>.OverflowMessage => SR.Overflow_SByte;
1402
static bool
IBinaryIntegerParseAndFormatInfo
<sbyte>.IsGreaterThanAsUnsigned(sbyte left, sbyte right) => (byte)(left) > (byte)(right);
1404
static sbyte
IBinaryIntegerParseAndFormatInfo
<sbyte>.MultiplyBy10(sbyte value) => (sbyte)(value * 10);
1406
static sbyte
IBinaryIntegerParseAndFormatInfo
<sbyte>.MultiplyBy16(sbyte value) => (sbyte)(value * 16);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (8)
2216
static bool
IBinaryIntegerParseAndFormatInfo
<UInt128>.IsSigned => false;
2218
static int
IBinaryIntegerParseAndFormatInfo
<UInt128>.MaxDigitCount => 39; // 340_282_366_920_938_463_463_374_607_431_768_211_455
2220
static int
IBinaryIntegerParseAndFormatInfo
<UInt128>.MaxHexDigitCount => 32; // 0xFFFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF
2222
static UInt128
IBinaryIntegerParseAndFormatInfo
<UInt128>.MaxValueDiv10 => new UInt128(0x1999_9999_9999_9999, 0x9999_9999_9999_9999);
2224
static string
IBinaryIntegerParseAndFormatInfo
<UInt128>.OverflowMessage => SR.Overflow_UInt128;
2226
static bool
IBinaryIntegerParseAndFormatInfo
<UInt128>.IsGreaterThanAsUnsigned(UInt128 left, UInt128 right) => left > right;
2228
static UInt128
IBinaryIntegerParseAndFormatInfo
<UInt128>.MultiplyBy10(UInt128 value) => value * 10;
2230
static UInt128
IBinaryIntegerParseAndFormatInfo
<UInt128>.MultiplyBy16(UInt128 value) => value * 16;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (8)
1212
static bool
IBinaryIntegerParseAndFormatInfo
<ushort>.IsSigned => false;
1214
static int
IBinaryIntegerParseAndFormatInfo
<ushort>.MaxDigitCount => 5; // 65_535
1216
static int
IBinaryIntegerParseAndFormatInfo
<ushort>.MaxHexDigitCount => 4; // 0xFFFF
1218
static ushort
IBinaryIntegerParseAndFormatInfo
<ushort>.MaxValueDiv10 => MaxValue / 10;
1220
static string
IBinaryIntegerParseAndFormatInfo
<ushort>.OverflowMessage => SR.Overflow_UInt16;
1222
static bool
IBinaryIntegerParseAndFormatInfo
<ushort>.IsGreaterThanAsUnsigned(ushort left, ushort right) => left > right;
1224
static ushort
IBinaryIntegerParseAndFormatInfo
<ushort>.MultiplyBy10(ushort value) => (ushort)(value * 10);
1226
static ushort
IBinaryIntegerParseAndFormatInfo
<ushort>.MultiplyBy16(ushort value) => (ushort)(value * 16);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (8)
1283
static bool
IBinaryIntegerParseAndFormatInfo
<uint>.IsSigned => false;
1285
static int
IBinaryIntegerParseAndFormatInfo
<uint>.MaxDigitCount => 10; // 4_294_967_295
1287
static int
IBinaryIntegerParseAndFormatInfo
<uint>.MaxHexDigitCount => 8; // 0xFFFF_FFFF
1289
static uint
IBinaryIntegerParseAndFormatInfo
<uint>.MaxValueDiv10 => MaxValue / 10;
1291
static string
IBinaryIntegerParseAndFormatInfo
<uint>.OverflowMessage => SR.Overflow_UInt32;
1293
static bool
IBinaryIntegerParseAndFormatInfo
<uint>.IsGreaterThanAsUnsigned(uint left, uint right) => left > right;
1295
static uint
IBinaryIntegerParseAndFormatInfo
<uint>.MultiplyBy10(uint value) => value * 10;
1297
static uint
IBinaryIntegerParseAndFormatInfo
<uint>.MultiplyBy16(uint value) => value * 16;
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (8)
1284
static bool
IBinaryIntegerParseAndFormatInfo
<ulong>.IsSigned => false;
1286
static int
IBinaryIntegerParseAndFormatInfo
<ulong>.MaxDigitCount => 20; // 18_446_744_073_709_551_615
1288
static int
IBinaryIntegerParseAndFormatInfo
<ulong>.MaxHexDigitCount => 16; // 0xFFFF_FFFF_FFFF_FFFF
1290
static ulong
IBinaryIntegerParseAndFormatInfo
<ulong>.MaxValueDiv10 => MaxValue / 10;
1292
static string
IBinaryIntegerParseAndFormatInfo
<ulong>.OverflowMessage => SR.Overflow_UInt64;
1294
static bool
IBinaryIntegerParseAndFormatInfo
<ulong>.IsGreaterThanAsUnsigned(ulong left, ulong right) => left > right;
1296
static ulong
IBinaryIntegerParseAndFormatInfo
<ulong>.MultiplyBy10(ulong value) => value * 10;
1298
static ulong
IBinaryIntegerParseAndFormatInfo
<ulong>.MultiplyBy16(ulong value) => value * 16;