1.3.0
22 Jan 17
Toggle Dropdown
Version 2
2.1.2
14 Jan 24
2.1.1
6 Nov 21
2.1.0
3 Sep 21
2.0.0
14 Jan 20
Version 1
1.3.0
22 Jan 17
1.2.5
21 Jan 17
1.2.4
25 Nov 16
1.2.3
10 Nov 16
1.2.2
28 Oct 16
1.2.1
23 Jul 16
Compare to version...
with 2.0.0
Toggle Dropdown
Version 2
2.1.2
14 Jan 24
2.1.1
6 Nov 21
2.1.0
3 Sep 21
2.0.0
14 Jan 20
Version 1
1.3.0
22 Jan 17
1.2.5
21 Jan 17
1.2.4
25 Nov 16
1.2.3
10 Nov 16
1.2.2
28 Oct 16
1.2.1
23 Jul 16
Download Package
Open in NuGet
<
PackageReference
Include
=
"ByteSize"
Version
=
"1.3.0"
/>
API Differences between 1.3.0 and 2.0.0
3
Additions
35
Removals
ByteSizeLib
public
struct
ByteSize
:
IComparable
<
ByteSize
>,
IEquatable
<
ByteSize
>
public
const
long
BytesInGibiByte
=
1073741824
public
const
long
BytesInKibiByte
=
1024
public
const
long
BytesInMebiByte
=
1048576
public
const
long
BytesInPebiByte
=
1125899906842624
public
const
long
BytesInTebiByte
=
1099511627776
public
const
string
GibiByteSymbol
=
"GiB"
public
const
string
KibiByteSymbol
=
"KiB"
public
const
string
MebiByteSymbol
=
"MiB"
public
const
string
PebiByteSymbol
=
"PiB"
public
const
string
TebiByteSymbol
=
"TiB"
public
double
GibiBytes
{
get
; }
public
double
KibiBytes
{
get
; }
public
string
LargestWholeNumberBinarySymbol
{
get
; }
public
double
LargestWholeNumberBinaryValue
{
get
; }
public
string
LargestWholeNumberDecimalSymbol
{
get
; }
public
double
LargestWholeNumberDecimalValue
{
get
; }
public
double
MebiBytes
{
get
; }
public
string
LargestWholeNumberSymbol
{
get
; }
public
double
LargestWholeNumberValue
{
get
; }
public
double
PebiBytes
{
get
; }
public
double
TebiBytes
{
get
; }
public
ByteSize
(
long
bits
)
public
static
ByteSize
FromGibiBytes
(
double
value
)
public
static
ByteSize
FromKibiBytes
(
double
value
)
public
static
ByteSize
FromMebiBytes
(
double
value
)
public
static
ByteSize
FromPebiBytes
(
double
value
)
public
static
ByteSize
FromTebiBytes
(
double
value
)
public
static
ByteSize
Parse
(
string
s
,
IFormatProvider
formatProvider
)
public
static
ByteSize
Parse
(
string
s
,
NumberStyles
numberStyles
,
IFormatProvider
formatProvider
)
public
static
bool
TryParse
(
string
s
,
NumberStyles
numberStyles
,
IFormatProvider
formatProvider
,
out
ByteSize
result
)
public
ByteSize
AddGibiBytes
(
double
value
)
public
ByteSize
AddKibiBytes
(
double
value
)
public
ByteSize
AddMebiBytes
(
double
value
)
public
ByteSize
AddPebiBytes
(
double
value
)
public
ByteSize
AddTebiBytes
(
double
value
)
public
string
ToBinaryString
()
public
string
ToString
(
string
format
,
IFormatProvider
provider
,
bool
useBinaryByte
=
false
)
public
string
ToString
(
string
format
,
IFormatProvider
provider
)