HeapProfiler.MainWindow.FormatCount C# (CSharp) Method

FormatCount() public static method

public static FormatCount ( long count ) : string
count long
return string
        public static string FormatCount(long count)
        {
            if (count < 1000)
                return count.ToString();
            else if (count < 1000000)
                return String.Format("{0:###,000}", count);
            else if (count < 1000000000)
                return String.Format("{0:###,000,000}", count);
            else
                return String.Format("{0:###,000,000,000}", count);
        }
MainWindow