System.Buffers.StandardFormat
Represents a standard formatting string without using an actual String. A StandardFormat consists of a character (such as 'G', 'D' or 'X')
and an optional precision ranging from 0..99, or the special value NoPrecision.
namespace System.Buffers
{
public readonly struct StandardFormat : IEquatable<StandardFormat>
{
public const byte NoPrecision = byte.MaxValue;
public const byte MaxPrecision = 99;
public char Symbol { get; }
public byte Precision { get; }
public bool HasPrecision { get; }
public bool IsDefault { get; }
public StandardFormat(char symbol, byte precision = byte.MaxValue);
public static implicit operator StandardFormat(char symbol);
public static StandardFormat Parse(ReadOnlySpan<char> format);
public static StandardFormat Parse(string format);
public bool Equals(StandardFormat other);
public static bool operator ==(StandardFormat left, StandardFormat right);
public static bool operator !=(StandardFormat left, StandardFormat right);
}
}