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