FileHelper.FileSizeAsString Method

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

Overloads

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

FileSizeAsString(long)

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

public static string FileSizeAsString(long size)

Parameters

size
long

The file size in bytes

Returns

string

The file size as a string.

FileSizeAsString(long?)

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

public static string FileSizeAsString(long? size)

Parameters

size
long?

The file size in bytes

Returns

string

The file size as a string.