11 implementations of MaxDigitCount
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
1205static int IBinaryIntegerParseAndFormatInfo<byte>.MaxDigitCount => 3; // 255
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
2030static int IBinaryIntegerParseAndFormatInfo<char>.MaxDigitCount => 5; // 65_535
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
2129static int IBinaryIntegerParseAndFormatInfo<Int128>.MaxDigitCount => 39; // 170_141_183_460_469_231_731_687_303_715_884_105_727
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
1397static int IBinaryIntegerParseAndFormatInfo<short>.MaxDigitCount => 5; // 32_767
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
1463static int IBinaryIntegerParseAndFormatInfo<int>.MaxDigitCount => 10; // 2_147_483_647
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
1466static int IBinaryIntegerParseAndFormatInfo<long>.MaxDigitCount => 19; // 9_223_372_036_854_775_807
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
1360static int IBinaryIntegerParseAndFormatInfo<sbyte>.MaxDigitCount => 3; // 127
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
2164static int IBinaryIntegerParseAndFormatInfo<UInt128>.MaxDigitCount => 39; // 340_282_366_920_938_463_463_374_607_431_768_211_455
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
1212static int IBinaryIntegerParseAndFormatInfo<ushort>.MaxDigitCount => 5; // 65_535
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
1257static int IBinaryIntegerParseAndFormatInfo<uint>.MaxDigitCount => 10; // 4_294_967_295
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
1250static int IBinaryIntegerParseAndFormatInfo<ulong>.MaxDigitCount => 20; // 18_446_744_073_709_551_615
3 references to MaxDigitCount
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (3)
123if ((i > TInteger.MaxDigitCount) || (i < number.DigitsCount) || (!TInteger.IsSigned && number.IsNegative) || number.HasNonZeroTail) 218NumberBuffer number = new NumberBuffer(NumberBufferKind.Integer, stackalloc byte[TInteger.MaxDigitCount + 1]); 368for (int i = 0; i < TInteger.MaxDigitCount - 2; i++) // next MaxDigitCount - 2 digits can't overflow