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