roadie/Roadie.Api.Library/Extensions/LongExt.cs
2019-07-03 11:21:29 -05:00

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);
}
}
}