1.2.2
28 Oct 16
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.1.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.2.2"
/>
API Differences between 1.2.2 and 2.1.0
58
Additions
0
Removals
ByteSizeLib
public
struct
ByteSize
:
IComparable
<
ByteSize
>,
IEquatable
<
ByteSize
>
public
const
long
BitsInByte
=
8
public
const
string
BitSymbol
=
"b"
public
const
long
BytesInGigaByte
=
1073741824
public
const
long
BytesInKiloByte
=
1024
public
const
long
BytesInMegaByte
=
1048576
public
const
long
BytesInPetaByte
=
1125899906842624
public
const
long
BytesInTeraByte
=
1099511627776
public
const
string
ByteSymbol
=
"B"
public
const
string
GigaByteSymbol
=
"GB"
public
const
string
KiloByteSymbol
=
"KB"
public
static
readonly
ByteSize
MaxValue
public
const
string
MegaByteSymbol
=
"MB"
public
static
readonly
ByteSize
MinValue
public
const
string
PetaByteSymbol
=
"PB"
public
const
string
TeraByteSymbol
=
"TB"
public
long
Bits
{
get
; }
public
double
Bytes
{
get
; }
public
double
GigaBytes
{
get
; }
public
double
KiloBytes
{
get
; }
public
string
LargestWholeNumberSymbol
{
get
; }
public
double
LargestWholeNumberValue
{
get
; }
public
double
MegaBytes
{
get
; }
public
double
PetaBytes
{
get
; }
public
double
TeraBytes
{
get
; }
public
ByteSize
(
double
byteSize
)
public
static
ByteSize
FromBits
(
long
value
)
public
static
ByteSize
FromBytes
(
double
value
)
public
static
ByteSize
FromGigaBytes
(
double
value
)
public
static
ByteSize
FromKiloBytes
(
double
value
)
public
static
ByteSize
FromMegaBytes
(
double
value
)
public
static
ByteSize
FromPetaBytes
(
double
value
)
public
static
ByteSize
FromTeraBytes
(
double
value
)
public
static
ByteSize
op_Addition
(
ByteSize
b1
,
ByteSize
b2
)
public
static
ByteSize
op_Decrement
(
ByteSize
b
)
public
static
bool
op_Equality
(
ByteSize
b1
,
ByteSize
b2
)
public
static
bool
op_GreaterThan
(
ByteSize
b1
,
ByteSize
b2
)
public
static
bool
op_GreaterThanOrEqual
(
ByteSize
b1
,
ByteSize
b2
)
public
static
ByteSize
op_Increment
(
ByteSize
b
)
public
static
bool
op_Inequality
(
ByteSize
b1
,
ByteSize
b2
)
public
static
bool
op_LessThan
(
ByteSize
b1
,
ByteSize
b2
)
public
static
bool
op_LessThanOrEqual
(
ByteSize
b1
,
ByteSize
b2
)
public
static
ByteSize
op_UnaryNegation
(
ByteSize
b
)
public
static
ByteSize
Parse
(
string
s
)
public
static
bool
TryParse
(
string
s
,
out
ByteSize
result
)
public
ByteSize
Add
(
ByteSize
bs
)
public
ByteSize
AddBits
(
long
value
)
public
ByteSize
AddBytes
(
double
value
)
public
ByteSize
AddGigaBytes
(
double
value
)
public
ByteSize
AddKiloBytes
(
double
value
)
public
ByteSize
AddMegaBytes
(
double
value
)
public
ByteSize
AddPetaBytes
(
double
value
)
public
ByteSize
AddTeraBytes
(
double
value
)
public
int
CompareTo
(
ByteSize
other
)
public
bool
Equals
(
ByteSize
value
)
public
ByteSize
Subtract
(
ByteSize
bs
)
public
string
ToString
(
string
format
)
public
string
ToString
(
string
format
,
IFormatProvider
provider
)