예제 #1
0
        internal static string ConvertToSizeString(long size)
        {
            DataSizeUnit totalSizeUnit = SizeConverter.GetSuitableUnit(size);

            return(string.Format("{0:#0.##} {1}", SizeConverter.ConvertToSize(
                                     size, totalSizeUnit), SizeConverter.GetUnitString(totalSizeUnit)));
        }