C# Class ChocoPM.Converters.LongSizeToFileSizeString

Inheritance: IValueConverter
Show file Open project: RichiCoder1/ChocoPM

Public Methods

Method Description
Convert ( object value, Type targetType, object parameter, System culture ) : object
ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
StrFormatByteSize ( long filesize ) : string

Converts a numeric value into a string that represents the number expressed as a size value in bytes, kilobytes, megabytes, or gigabytes, depending on the size.

Method Details

Convert() public method

public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object
targetType System.Type
parameter object
culture System
return object

ConvertBack() public method

public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
value object
targetType System.Type
parameter object
culture System
return object

StrFormatByteSize() public static method

Converts a numeric value into a string that represents the number expressed as a size value in bytes, kilobytes, megabytes, or gigabytes, depending on the size.
public static StrFormatByteSize ( long filesize ) : string
filesize long The numeric value to be converted.
return string