roadie/RoadieLibrary/Extensions/LongExt.cs
Steven Hildreth c0d5e5dc24 WIP
2018-11-04 14:33:37 -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);
}
}
}