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