Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ StandardFormat()

System.Buffers.StandardFormat.StandardFormat ( char symbol,
byte precision = byte::MaxValue )
inline

Definition at line 33 of file StandardFormat.cs.

34 {
35 if (precision != byte.MaxValue && precision > 99)
36 {
37 ThrowHelper.ThrowArgumentOutOfRangeException_PrecisionTooLarge();
38 }
39 if (symbol != (byte)symbol)
40 {
41 ThrowHelper.ThrowArgumentOutOfRangeException_SymbolDoesNotFit();
42 }
43 _format = (byte)symbol;
44 _precision = precision;
45 }

References System.Buffers.StandardFormat._format, System.Buffers.StandardFormat._precision, System.ThrowHelper.ThrowArgumentOutOfRangeException_PrecisionTooLarge(), and System.ThrowHelper.ThrowArgumentOutOfRangeException_SymbolDoesNotFit().

Referenced by System.Buffers.StandardFormat.operator StandardFormat(), and System.Buffers.StandardFormat.ParseHelper().