11 implementations of IBinaryIntegerParseAndFormatInfo
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
27
IBinaryIntegerParseAndFormatInfo
<byte>
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
34
IBinaryIntegerParseAndFormatInfo
<char>
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
22
IBinaryIntegerParseAndFormatInfo
<Int128>
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<short>
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<int>
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<long>
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<sbyte>
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
24
IBinaryIntegerParseAndFormatInfo
<UInt128>
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<ushort>
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<uint>
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
28
IBinaryIntegerParseAndFormatInfo
<ulong>
103 references to IBinaryIntegerParseAndFormatInfo
System.Private.CoreLib (103)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (8)
1203
static bool
IBinaryIntegerParseAndFormatInfo
<byte>.IsSigned => false;
1205
static int
IBinaryIntegerParseAndFormatInfo
<byte>.MaxDigitCount => 3; // 255
1207
static int
IBinaryIntegerParseAndFormatInfo
<byte>.MaxHexDigitCount => 2; // 0xFF
1209
static byte
IBinaryIntegerParseAndFormatInfo
<byte>.MaxValueDiv10 => MaxValue / 10;
1211
static string
IBinaryIntegerParseAndFormatInfo
<byte>.OverflowMessage => SR.Overflow_Byte;
1213
static bool
IBinaryIntegerParseAndFormatInfo
<byte>.IsGreaterThanAsUnsigned(byte left, byte right) => left > right;
1215
static byte
IBinaryIntegerParseAndFormatInfo
<byte>.MultiplyBy10(byte value) => (byte)(value * 10);
1217
static byte
IBinaryIntegerParseAndFormatInfo
<byte>.MultiplyBy16(byte value) => (byte)(value * 16);
src\libraries\System.Private.CoreLib\src\System\Char.cs (8)
2028
static bool
IBinaryIntegerParseAndFormatInfo
<char>.IsSigned => false;
2030
static int
IBinaryIntegerParseAndFormatInfo
<char>.MaxDigitCount => 5; // 65_535
2032
static int
IBinaryIntegerParseAndFormatInfo
<char>.MaxHexDigitCount => 4; // 0xFFFF
2034
static char
IBinaryIntegerParseAndFormatInfo
<char>.MaxValueDiv10 => (char)(MaxValue / 10);
2036
static string
IBinaryIntegerParseAndFormatInfo
<char>.OverflowMessage => SR.Overflow_Char;
2038
static bool
IBinaryIntegerParseAndFormatInfo
<char>.IsGreaterThanAsUnsigned(char left, char right) => left > right;
2040
static char
IBinaryIntegerParseAndFormatInfo
<char>.MultiplyBy10(char value) => (char)(value * 10);
2042
static char
IBinaryIntegerParseAndFormatInfo
<char>.MultiplyBy16(char value) => (char)(value * 16);
src\libraries\System.Private.CoreLib\src\System\Enum.cs (2)
916
where TUnderlying : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TUnderlying>
917
where TStorage : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TStorage>
src\libraries\System.Private.CoreLib\src\System\Int128.cs (8)
2127
static bool
IBinaryIntegerParseAndFormatInfo
<Int128>.IsSigned => true;
2129
static int
IBinaryIntegerParseAndFormatInfo
<Int128>.MaxDigitCount => 39; // 170_141_183_460_469_231_731_687_303_715_884_105_727
2131
static int
IBinaryIntegerParseAndFormatInfo
<Int128>.MaxHexDigitCount => 32; // 0x7FFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF
2133
static Int128
IBinaryIntegerParseAndFormatInfo
<Int128>.MaxValueDiv10 => new Int128(0x0CCC_CCCC_CCCC_CCCC, 0xCCCC_CCCC_CCCC_CCCC);
2135
static string
IBinaryIntegerParseAndFormatInfo
<Int128>.OverflowMessage => SR.Overflow_Int128;
2137
static bool
IBinaryIntegerParseAndFormatInfo
<Int128>.IsGreaterThanAsUnsigned(Int128 left, Int128 right) => (UInt128)(left) > (UInt128)(right);
2139
static Int128
IBinaryIntegerParseAndFormatInfo
<Int128>.MultiplyBy10(Int128 value) => value * 10;
2141
static Int128
IBinaryIntegerParseAndFormatInfo
<Int128>.MultiplyBy16(Int128 value) => value * 16;
src\libraries\System.Private.CoreLib\src\System\Int16.cs (8)
1395
static bool
IBinaryIntegerParseAndFormatInfo
<short>.IsSigned => true;
1397
static int
IBinaryIntegerParseAndFormatInfo
<short>.MaxDigitCount => 5; // 32_767
1399
static int
IBinaryIntegerParseAndFormatInfo
<short>.MaxHexDigitCount => 4; // 0x7FFF
1401
static short
IBinaryIntegerParseAndFormatInfo
<short>.MaxValueDiv10 => MaxValue / 10;
1403
static string
IBinaryIntegerParseAndFormatInfo
<short>.OverflowMessage => SR.Overflow_Int16;
1405
static bool
IBinaryIntegerParseAndFormatInfo
<short>.IsGreaterThanAsUnsigned(short left, short right) => (ushort)(left) > (ushort)(right);
1407
static short
IBinaryIntegerParseAndFormatInfo
<short>.MultiplyBy10(short value) => (short)(value * 10);
1409
static short
IBinaryIntegerParseAndFormatInfo
<short>.MultiplyBy16(short value) => (short)(value * 16);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (8)
1461
static bool
IBinaryIntegerParseAndFormatInfo
<int>.IsSigned => true;
1463
static int
IBinaryIntegerParseAndFormatInfo
<int>.MaxDigitCount => 10; // 2_147_483_647
1465
static int
IBinaryIntegerParseAndFormatInfo
<int>.MaxHexDigitCount => 8; // 0x7FFF_FFFF
1467
static int
IBinaryIntegerParseAndFormatInfo
<int>.MaxValueDiv10 => MaxValue / 10;
1469
static string
IBinaryIntegerParseAndFormatInfo
<int>.OverflowMessage => SR.Overflow_Int32;
1471
static bool
IBinaryIntegerParseAndFormatInfo
<int>.IsGreaterThanAsUnsigned(int left, int right) => (uint)(left) > (uint)(right);
1473
static int
IBinaryIntegerParseAndFormatInfo
<int>.MultiplyBy10(int value) => value * 10;
1475
static int
IBinaryIntegerParseAndFormatInfo
<int>.MultiplyBy16(int value) => value * 16;
src\libraries\System.Private.CoreLib\src\System\Int64.cs (8)
1464
static bool
IBinaryIntegerParseAndFormatInfo
<long>.IsSigned => true;
1466
static int
IBinaryIntegerParseAndFormatInfo
<long>.MaxDigitCount => 19; // 9_223_372_036_854_775_807
1468
static int
IBinaryIntegerParseAndFormatInfo
<long>.MaxHexDigitCount => 16; // 0x7FFF_FFFF_FFFF_FFFF
1470
static long
IBinaryIntegerParseAndFormatInfo
<long>.MaxValueDiv10 => MaxValue / 10;
1472
static string
IBinaryIntegerParseAndFormatInfo
<long>.OverflowMessage => SR.Overflow_Int64;
1474
static bool
IBinaryIntegerParseAndFormatInfo
<long>.IsGreaterThanAsUnsigned(long left, long right) => (ulong)(left) > (ulong)(right);
1476
static long
IBinaryIntegerParseAndFormatInfo
<long>.MultiplyBy10(long value) => value * 10;
1478
static long
IBinaryIntegerParseAndFormatInfo
<long>.MultiplyBy16(long value) => value * 16;
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (13)
31
where TSelf : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TSelf>
117
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
178
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
192
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
215
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
236
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
518
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
524
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
534
private readonly struct HexParser<TInteger> : IHexOrBinaryParser<TInteger> where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
544
private readonly struct BinaryParser<TInteger> : IHexOrBinaryParser<TInteger> where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
556
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
1033
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
1071
where TInteger : unmanaged,
IBinaryIntegerParseAndFormatInfo
<TInteger>
src\libraries\System.Private.CoreLib\src\System\SByte.cs (8)
1358
static bool
IBinaryIntegerParseAndFormatInfo
<sbyte>.IsSigned => true;
1360
static int
IBinaryIntegerParseAndFormatInfo
<sbyte>.MaxDigitCount => 3; // 127
1362
static int
IBinaryIntegerParseAndFormatInfo
<sbyte>.MaxHexDigitCount => 2; // 0x7F
1364
static sbyte
IBinaryIntegerParseAndFormatInfo
<sbyte>.MaxValueDiv10 => MaxValue / 10;
1366
static string
IBinaryIntegerParseAndFormatInfo
<sbyte>.OverflowMessage => SR.Overflow_SByte;
1368
static bool
IBinaryIntegerParseAndFormatInfo
<sbyte>.IsGreaterThanAsUnsigned(sbyte left, sbyte right) => (byte)(left) > (byte)(right);
1370
static sbyte
IBinaryIntegerParseAndFormatInfo
<sbyte>.MultiplyBy10(sbyte value) => (sbyte)(value * 10);
1372
static sbyte
IBinaryIntegerParseAndFormatInfo
<sbyte>.MultiplyBy16(sbyte value) => (sbyte)(value * 16);
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (8)
2162
static bool
IBinaryIntegerParseAndFormatInfo
<UInt128>.IsSigned => false;
2164
static int
IBinaryIntegerParseAndFormatInfo
<UInt128>.MaxDigitCount => 39; // 340_282_366_920_938_463_463_374_607_431_768_211_455
2166
static int
IBinaryIntegerParseAndFormatInfo
<UInt128>.MaxHexDigitCount => 32; // 0xFFFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF
2168
static UInt128
IBinaryIntegerParseAndFormatInfo
<UInt128>.MaxValueDiv10 => new UInt128(0x1999_9999_9999_9999, 0x9999_9999_9999_9999);
2170
static string
IBinaryIntegerParseAndFormatInfo
<UInt128>.OverflowMessage => SR.Overflow_UInt128;
2172
static bool
IBinaryIntegerParseAndFormatInfo
<UInt128>.IsGreaterThanAsUnsigned(UInt128 left, UInt128 right) => left > right;
2174
static UInt128
IBinaryIntegerParseAndFormatInfo
<UInt128>.MultiplyBy10(UInt128 value) => value * 10;
2176
static UInt128
IBinaryIntegerParseAndFormatInfo
<UInt128>.MultiplyBy16(UInt128 value) => value * 16;
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (8)
1210
static bool
IBinaryIntegerParseAndFormatInfo
<ushort>.IsSigned => false;
1212
static int
IBinaryIntegerParseAndFormatInfo
<ushort>.MaxDigitCount => 5; // 65_535
1214
static int
IBinaryIntegerParseAndFormatInfo
<ushort>.MaxHexDigitCount => 4; // 0xFFFF
1216
static ushort
IBinaryIntegerParseAndFormatInfo
<ushort>.MaxValueDiv10 => MaxValue / 10;
1218
static string
IBinaryIntegerParseAndFormatInfo
<ushort>.OverflowMessage => SR.Overflow_UInt16;
1220
static bool
IBinaryIntegerParseAndFormatInfo
<ushort>.IsGreaterThanAsUnsigned(ushort left, ushort right) => left > right;
1222
static ushort
IBinaryIntegerParseAndFormatInfo
<ushort>.MultiplyBy10(ushort value) => (ushort)(value * 10);
1224
static ushort
IBinaryIntegerParseAndFormatInfo
<ushort>.MultiplyBy16(ushort value) => (ushort)(value * 16);
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (8)
1255
static bool
IBinaryIntegerParseAndFormatInfo
<uint>.IsSigned => false;
1257
static int
IBinaryIntegerParseAndFormatInfo
<uint>.MaxDigitCount => 10; // 4_294_967_295
1259
static int
IBinaryIntegerParseAndFormatInfo
<uint>.MaxHexDigitCount => 8; // 0xFFFF_FFFF
1261
static uint
IBinaryIntegerParseAndFormatInfo
<uint>.MaxValueDiv10 => MaxValue / 10;
1263
static string
IBinaryIntegerParseAndFormatInfo
<uint>.OverflowMessage => SR.Overflow_UInt32;
1265
static bool
IBinaryIntegerParseAndFormatInfo
<uint>.IsGreaterThanAsUnsigned(uint left, uint right) => left > right;
1267
static uint
IBinaryIntegerParseAndFormatInfo
<uint>.MultiplyBy10(uint value) => value * 10;
1269
static uint
IBinaryIntegerParseAndFormatInfo
<uint>.MultiplyBy16(uint value) => value * 16;
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (8)
1248
static bool
IBinaryIntegerParseAndFormatInfo
<ulong>.IsSigned => false;
1250
static int
IBinaryIntegerParseAndFormatInfo
<ulong>.MaxDigitCount => 20; // 18_446_744_073_709_551_615
1252
static int
IBinaryIntegerParseAndFormatInfo
<ulong>.MaxHexDigitCount => 16; // 0xFFFF_FFFF_FFFF_FFFF
1254
static ulong
IBinaryIntegerParseAndFormatInfo
<ulong>.MaxValueDiv10 => MaxValue / 10;
1256
static string
IBinaryIntegerParseAndFormatInfo
<ulong>.OverflowMessage => SR.Overflow_UInt64;
1258
static bool
IBinaryIntegerParseAndFormatInfo
<ulong>.IsGreaterThanAsUnsigned(ulong left, ulong right) => left > right;
1260
static ulong
IBinaryIntegerParseAndFormatInfo
<ulong>.MultiplyBy10(ulong value) => value * 10;
1262
static ulong
IBinaryIntegerParseAndFormatInfo
<ulong>.MultiplyBy16(ulong value) => value * 16;