WALTER | Workable Algorithms for Location-aware Transmission, Encryption Response

FileInfoExtensions..::..SizeOnDisk Method

get the file size formatted in a string as found in file explorer

Namespace:  System.IO
Assembly:  Walter (in Walter.dll)

Syntax


[NotNullAttribute]
public static string SizeOnDisk(
	this FileInfo file
)

Parameters

file
Type: FileInfo

Return Value

a string formatted like {0:0.##} ["B","KB","MB","GB","TB"]]