Ejemplo n.º 1
0
        public static string GetSizeStringDouble(this ByteType type, long size, int digit)
        {
            var b = type.SizeToByteName(size);

            var roundSz = Math.Round(type.GetSizeDouble(size), digit);

            return($"{roundSz} {b}");
        }
Ejemplo n.º 2
0
        public static string GetSizeString(this ByteType type, long size)
        {
            var b = type.SizeToByteName(size);

            return($"{type.GetSize(size):#,0} {b}");
        }