mirror of
https://github.com/sphildreth/roadie
synced 2024-11-23 04:33:16 +00:00
13 lines
No EOL
309 B
C#
13 lines
No EOL
309 B
C#
using Roadie.Library.Utility;
|
|
|
|
namespace Roadie.Library.Extensions
|
|
{
|
|
public static class LongExt
|
|
{
|
|
public static string ToFileSize(this long? l)
|
|
{
|
|
if (!l.HasValue) return "0";
|
|
return string.Format(new FileSizeFormatProvider(), "{0:fs}", l);
|
|
}
|
|
}
|
|
} |