C# 클래스 BetterExplorer.FriendlySizeConverter

Contains functionality for presenting the size of a file
파일 보기 프로젝트 열기: Gainedge/BetterExplorer 1 사용 예제들

공개 메소드들

메소드 설명
GetByteLength ( double size, FileSizeMeasurements type ) : long

Converts a the size of a file in units (FileSizeMeasurements and double) into the number of bytes

GetFriendlySize ( double bytes ) : string

Converts bytes into a user friendly string converted into larger units when desired.

메소드 상세

GetByteLength() 공개 정적인 메소드

Converts a the size of a file in units (FileSizeMeasurements and double) into the number of bytes
public static GetByteLength ( double size, FileSizeMeasurements type ) : long
size double
type FileSizeMeasurements
리턴 long

GetFriendlySize() 공개 정적인 메소드

Converts bytes into a user friendly string converted into larger units when desired.
public static GetFriendlySize ( double bytes ) : string
bytes double The number of bytes
리턴 string