Reko.Core.Output.CodeFormatter.UnsignedFormatString C# (CSharp) Метод

UnsignedFormatString() защищенный Метод

protected UnsignedFormatString ( PrimitiveType type, ulong value ) : string
type PrimitiveType
value ulong
Результат string
        protected virtual string UnsignedFormatString(PrimitiveType type, ulong value)
        {
            switch (type.Size)
            {
            case 1: return "0x{0:X2}";
            case 2: return "0x{0:X4}";
            case 4: return "0x{0:X8}";
            case 8: return "0x{0:X16}";
            case 16: return "0x{0:X16}";
            default: throw new ArgumentOutOfRangeException("type", type.Size, string.Format("Integral types of size {0} bytes are not supported.", type.Size));
            }
        }