C# 클래스 FileSize, Clippy

파일 보기 프로젝트 열기: 24hr/Clippy 1 사용 예제들

공개 메소드들

메소드 설명
KibiFileSize ( this file, string numberFormat = "0.##", IFormatProvider format = null ) : string

Returns a formatted string representing the file size in a human readable format using 1024 as power. http://en.wikipedia.org/wiki/Kibibyte

KiloFileSize ( this file, string numberFormat = "0.##", IFormatProvider format = null ) : string

Returns a formatted string representing the file size in a human readable format using 1000 as power.

http://en.wikipedia.org/wiki/Kilobyte

ToKibiFileSize ( this length, string numberFormat = "0.##", IFormatProvider formatProvider = null ) : string

Returns a string formatted to represent a file size using multiplication of 1024 as power

http://en.wikipedia.org/wiki/Kibibyte

ToKiloFileSize ( this length, string numberFormat = "0.##", IFormatProvider formatProvider = null ) : string

Returns a string formatted to represent file size using multiplication of 1000 as power.

http://en.wikipedia.org/wiki/Kilobyte

비공개 메소드들

메소드 설명
ValidateFileInfo ( FileInfo file ) : void

메소드 상세

KibiFileSize() 공개 정적인 메소드

Returns a formatted string representing the file size in a human readable format using 1024 as power. http://en.wikipedia.org/wiki/Kibibyte
public static KibiFileSize ( this file, string numberFormat = "0.##", IFormatProvider format = null ) : string
file this
numberFormat string
format IFormatProvider
리턴 string

KiloFileSize() 공개 정적인 메소드

Returns a formatted string representing the file size in a human readable format using 1000 as power.
http://en.wikipedia.org/wiki/Kilobyte
public static KiloFileSize ( this file, string numberFormat = "0.##", IFormatProvider format = null ) : string
file this
numberFormat string
format IFormatProvider
리턴 string

ToKibiFileSize() 공개 정적인 메소드

Returns a string formatted to represent a file size using multiplication of 1024 as power
http://en.wikipedia.org/wiki/Kibibyte
public static ToKibiFileSize ( this length, string numberFormat = "0.##", IFormatProvider formatProvider = null ) : string
length this
numberFormat string
formatProvider IFormatProvider
리턴 string

ToKiloFileSize() 공개 정적인 메소드

Returns a string formatted to represent file size using multiplication of 1000 as power.
http://en.wikipedia.org/wiki/Kilobyte
public static ToKiloFileSize ( this length, string numberFormat = "0.##", IFormatProvider formatProvider = null ) : string
length this
numberFormat string
formatProvider IFormatProvider
리턴 string