roadie/Roadie.Api.Library/Extensions/LongExt.cs
2018-12-26 13:39:13 -06:00

17 lines
No EOL
367 B
C#

using Roadie.Library.Utility;
using System;
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);
}
}
}