Tag Archives: TB

Format file sizes in KB, MB, GB, and so forth in C#

This example shows how to format file sizes in KB, MB, GB, and so forth. It defines two extension methods that convert numeric values into strings representing a number of bytes in bytes, KB, MB, and so forth. The first … Continue reading

Posted in algorithms, files, mathematics | Tagged , , , , , , , , , , , , , , , , | 6 Comments