mirror of
https://github.com/sphildreth/roadie
synced 2024-11-23 04:33:16 +00:00
17 lines
No EOL
367 B
C#
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);
|
|
}
|
|
}
|
|
} |