C# Class Evbpc.Framework.Utilities.DataSize

Afficher le fichier Open project: EBrown8534/Framework Class Usage Examples

Méthodes publiques

Méthode Description
DataSize ( ulong sizeInBytes ) : System
DataSize ( ulong sizeInBytes, SizeUnit unit ) : System
Equals ( object obj ) : bool
From ( double size, SizeUnit unit ) : DataSize
GetHashCode ( ) : int
GetLargestWholeSize ( SizeUnit unit = null ) : DataSize

Returns a DataSize that is the highest value which will have a non-zero whole-number Size component.

GetSize ( SizeUnit unit ) : double
GetSmallestPartialSize ( SizeUnit unit = null ) : DataSize

Returns a DataSize that is the smallest value which will have a zero whole-number Size component.

IsSame ( DataSize comparison ) : bool
IsSame ( DataSize left, DataSize right ) : bool
ToString ( ) : string
ToString ( SizeUnit unit ) : string
ToString ( string numberFormat ) : string
ToString ( string numberFormat, SizeUnit unit ) : string
operator ( ) : DataSize
operator ( ) : bool

Private Methods

Méthode Description
DataSize ( double size, SizeUnit unit ) : System

Method Details

DataSize() public méthode

public DataSize ( ulong sizeInBytes ) : System
sizeInBytes ulong
Résultat System

DataSize() public méthode

public DataSize ( ulong sizeInBytes, SizeUnit unit ) : System
sizeInBytes ulong
unit SizeUnit
Résultat System

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

From() public static méthode

public static From ( double size, SizeUnit unit ) : DataSize
size double
unit SizeUnit
Résultat DataSize

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetLargestWholeSize() public méthode

Returns a DataSize that is the highest value which will have a non-zero whole-number Size component.
public GetLargestWholeSize ( SizeUnit unit = null ) : DataSize
unit SizeUnit When set to the result will be a B type, when set to the result will be a iB type. If set to null the same base unit as the source value will be used.
Résultat DataSize

GetSize() public méthode

public GetSize ( SizeUnit unit ) : double
unit SizeUnit
Résultat double

GetSmallestPartialSize() public méthode

Returns a DataSize that is the smallest value which will have a zero whole-number Size component.
public GetSmallestPartialSize ( SizeUnit unit = null ) : DataSize
unit SizeUnit When set to the result will be a B type, when set to the result will be a iB type. If set to null the same base unit as the source value will be used.
Résultat DataSize

IsSame() public méthode

public IsSame ( DataSize comparison ) : bool
comparison DataSize
Résultat bool

IsSame() public static méthode

public static IsSame ( DataSize left, DataSize right ) : bool
left DataSize
right DataSize
Résultat bool

ToString() public méthode

public ToString ( ) : string
Résultat string

ToString() public méthode

public ToString ( SizeUnit unit ) : string
unit SizeUnit
Résultat string

ToString() public méthode

public ToString ( string numberFormat ) : string
numberFormat string
Résultat string

ToString() public méthode

public ToString ( string numberFormat, SizeUnit unit ) : string
numberFormat string
unit SizeUnit
Résultat string

operator() public static méthode

public static operator ( ) : DataSize
Résultat DataSize

operator() public static méthode

public static operator ( ) : bool
Résultat bool