Friday, May 1, 2015

asp.net Convert Bytes To Megabytes

  public static string ConvertBytesToMegabytes(long bytes)
        {
            return ((bytes / 1024f) / 1024f).ToString("0.00");

        }

No comments:

Post a Comment