Method | Description | |
---|---|---|
DataSize ( ulong sizeInBytes ) : System | ||
DataSize ( ulong sizeInBytes, SizeUnit unit ) : System | ||
Equals ( object obj ) : bool | ||
From ( double size, SizeUnit unit ) : |
||
GetHashCode ( ) : int | ||
GetLargestWholeSize ( SizeUnit unit = null ) : |
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 ) : |
Returns a DataSize that is the smallest value which will have a zero whole-number Size component.
|
|
IsSame ( |
||
IsSame ( |
||
ToString ( ) : string | ||
ToString ( SizeUnit unit ) : string | ||
ToString ( string numberFormat ) : string | ||
ToString ( string numberFormat, SizeUnit unit ) : string | ||
operator ( ) : |
||
operator ( ) : bool |
Method | Description | |
---|---|---|
DataSize ( double size, SizeUnit unit ) : System |
public DataSize ( ulong sizeInBytes ) : System | ||
sizeInBytes | ulong | |
return | System |
public DataSize ( ulong sizeInBytes, SizeUnit unit ) : System | ||
sizeInBytes | ulong | |
unit | SizeUnit | |
return | System |
public static From ( double size, SizeUnit unit ) : |
||
size | double | |
unit | SizeUnit | |
return |
public GetLargestWholeSize ( SizeUnit unit = null ) : |
||
unit | SizeUnit | When set to B type, when set to iB type. If set to null the same base unit as the source value will be used. |
return |
public GetSmallestPartialSize ( SizeUnit unit = null ) : |
||
unit | SizeUnit | When set to B type, when set to iB type. If set to null the same base unit as the source value will be used. |
return |
public static IsSame ( |
||
left | ||
right | ||
return | bool |
public ToString ( string numberFormat ) : string | ||
numberFormat | string | |
return | string |
public ToString ( string numberFormat, SizeUnit unit ) : string | ||
numberFormat | string | |
unit | SizeUnit | |
return | string |