ByteSize 2.0.0-beta1

ByteSize is a utility class that makes byte size representation in code easier by removing ambiguity of the value being represented. ByteSize is to bytes what System.TimeSpan is to time.

This is a prerelease version of ByteSize.
Install-Package ByteSize -Version 2.0.0-beta1
dotnet add package ByteSize --version 2.0.0-beta1
<PackageReference Include="ByteSize" Version="2.0.0-beta1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ByteSize --version 2.0.0-beta1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

**HUGE BREAKING CHANGE**:

By default `ByteSize` now assumes `1 KB == 1000 B` and `1 KiB == 1024 B` to
adhere to the IEC and NIST standards (https://en.wikipedia.org/wiki/Binary_prefix).
In the past `ByteSize` assumed `1 KB == 1024 B`, that means if you're upgrading
from v1, you'll see differences in values.

Other Breaking Changes:
- Renamed property `LargestWholeNumberSymbol` and `LargestWholeNumberValue` to `LargestWholeNumberDecimalSymbol` and `LargestWholeNumberDecimalValue` respectively.
- Drop support for all platforms _except_ `netstandard1.0` and `net45`.

New Features:

- Support for binary and decimal values (e.g. `ByteSize.FromKibiByte` and `ByteSize.FromKiloByte`).
- New constructor that takes a `long` value as the number of bits.

View all release notes at https://github.com/omar/ByteSize/releases.

Version History

Version Downloads Last updated
2.0.0-beta1 190 6/16/2019
1.3.0 138,562 1/22/2017
1.2.5 325 1/21/2017
1.2.4 1,889 11/25/2016
1.2.3 1,923 11/10/2016
1.2.2 542 10/28/2016
1.2.1 4,500 7/23/2016
1.2.0 1,161 6/18/2016
1.1.3 362 6/18/2016
1.1.2 1,543 3/22/2016
1.1.1 1,586 12/13/2015
1.1.0 5,355 8/20/2015
1.0.0 2,572 5/30/2015