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