Skip to content

Releases: omar/ByteSize

v2.1.2

14 Jan 20:31
Compare
Choose a tag to compare
  • Add strong name support

v2.1.1

10 Nov 13:26
Compare
Choose a tag to compare
  • Add documentation
  • Fix potential System.NullReferenceException in the ToString() methods

v2.1.0

10 Nov 13:25
Compare
Choose a tag to compare
  • Support multiple (*) and divide (/) operators of ByteSize object
  • Add ToString IFormattable parameter overload
  • Add target for .NET 5

v2.0.0

14 Jan 15:12
Compare
Choose a tag to compare

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). (#24 by @omar)
  • New constructor that takes a long value as the number of bits.
  • Support for culture on Parse and TryParse. (#39 by @P-Storm)

v1.3.0

22 Jan 00:31
Compare
Choose a tag to compare
  • Add support for subtracting two ByteSize objects. (#25 by @omar)

v1.2.5

21 Jan 21:32
Compare
Choose a tag to compare
  • Properly support .NET Standard 1.0. (#29 by @jp7677)

v1.2.4

25 Nov 06:36
Compare
Choose a tag to compare
  • Fix TryParse to not throw exceptions. (#23 by @omar)

v1.2.3

10 Nov 05:04
Compare
Choose a tag to compare
  • Fix ByteSize of zero ToString output. (#21 by @omar)

v1.2.2

28 Oct 04:28
Compare
Choose a tag to compare
  • Improve memory footprint of a ByteSize object. (#20 by @atifaziz)

v1.2.1

23 Jul 22:22
Compare
Choose a tag to compare
  • Fix parsing of numbers with group number separator like 1,500.65 mb. (#17 by @omar)