11 implementations of MaxDigitCount
System.Private.CoreLib (11)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
1221static int IBinaryIntegerParseAndFormatInfo<byte>.MaxDigitCount => 3; // 255
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
2090static int IBinaryIntegerParseAndFormatInfo<char>.MaxDigitCount => 5; // 65_535
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
2140static int IBinaryIntegerParseAndFormatInfo<Int128>.MaxDigitCount => 39; // 170_141_183_460_469_231_731_687_303_715_884_105_727
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
1415static int IBinaryIntegerParseAndFormatInfo<short>.MaxDigitCount => 5; // 32_767
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
1466static int IBinaryIntegerParseAndFormatInfo<int>.MaxDigitCount => 10; // 2_147_483_647
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
1469static int IBinaryIntegerParseAndFormatInfo<long>.MaxDigitCount => 19; // 9_223_372_036_854_775_807
src\runtime\src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1394static int IBinaryIntegerParseAndFormatInfo<sbyte>.MaxDigitCount => 3; // 127
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
2218static int IBinaryIntegerParseAndFormatInfo<UInt128>.MaxDigitCount => 39; // 340_282_366_920_938_463_463_374_607_431_768_211_455
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
1214static int IBinaryIntegerParseAndFormatInfo<ushort>.MaxDigitCount => 5; // 65_535
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
1285static int IBinaryIntegerParseAndFormatInfo<uint>.MaxDigitCount => 10; // 4_294_967_295
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
1286static int IBinaryIntegerParseAndFormatInfo<ulong>.MaxDigitCount => 20; // 18_446_744_073_709_551_615
3 references to MaxDigitCount
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (3)
200if ((i > TInteger.MaxDigitCount) || (i < number.DigitsCount) || (!TInteger.IsSigned && number.IsNegative) || number.HasNonZeroTail) 295NumberBuffer number = new NumberBuffer(NumberBufferKind.Integer, stackalloc byte[TInteger.MaxDigitCount + 1]); 447for (int i = 0; i < TInteger.MaxDigitCount - 2; i++) // next MaxDigitCount - 2 digits can't overflow