FileHelper.FileSizeAsString Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Overloads

FileSizeAsString(Int64) Returns the file size as a string, e.g. 2 GB instead of 2147483647.
FileSizeAsString(Nullable) Returns the file size as a string, e.g. 2 GB instead of 2147483647.

FileSizeAsString(Int64)

Returns the file size as a string, e.g. 2 GB instead of 2147483647.

public static string FileSizeAsString(long size)

Parameters

size
System.Int64

Returns

System.String

The file size as a string.

FileSizeAsString(Nullable)

Returns the file size as a string, e.g. 2 GB instead of 2147483647.

public static string FileSizeAsString(long? size)

Parameters

size
System.Nullable{System.Int64}

Returns

System.String

The file size as a string.