C# 클래스 PathLib.FileSize

Represents the size of a particular file.
파일 보기 프로젝트 열기: nemec/pathlib

공개 메소드들

메소드 설명
Equals ( object obj ) : bool
FileSize ( long bytes ) : System

Represents the size of a particular file.

GetHashCode ( ) : int
ToSIUnits ( ) : FileSize

Returns the file size represented in multiples of 1000.

ToString ( ) : string

Convert to a string using the closest "round" units.

ToString ( FileSizeUnits units, bool useUnambiguousPrefixes = false ) : string

Returns the string using the given units.

비공개 메소드들

메소드 설명
FileSize ( long bytes, FileSizeScale scale ) : System

Represents the size of a particular file.

GetAs ( FileSizeUnits units ) : long
GetAsFraction ( FileSizeUnits units ) : double

메소드 상세

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

FileSize() 공개 메소드

Represents the size of a particular file.
public FileSize ( long bytes ) : System
bytes long
리턴 System

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

ToSIUnits() 공개 메소드

Returns the file size represented in multiples of 1000.
public ToSIUnits ( ) : FileSize
리턴 FileSize

ToString() 공개 메소드

Convert to a string using the closest "round" units.
public ToString ( ) : string
리턴 string

ToString() 공개 메소드

Returns the string using the given units.
public ToString ( FileSizeUnits units, bool useUnambiguousPrefixes = false ) : string
units FileSizeUnits
useUnambiguousPrefixes bool /// Use the new IEC prefixes for binary units (kibibytes-KiB, /// mebibytes-MiB, etc.) instead of the more common units. ///
리턴 string