C# Класс PathLib.FileSize

Represents the size of a particular file.
Показать файл Открыть проект

Открытые методы

Метод Описание
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