NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet
NuGet, #1668 most downloaded on NuGet
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.
Latest stable
2.1.2
Last release 3 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 3.0 years
Nearly every release is documented
notes for 16 of 16 stable releases
13 versions withdrawn
withdrawn after publishing
127 years old
29 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
View all release notes at https://github.com/omar/ByteSize/blob/master/CHANGELOG.md.
View all release notes at https://github.com/omar/ByteSize/blob/master/CHANGELOG.md.
Fix potential System.NullReferenceException in the ToString() methods
View all release notes at https://github.com/omar/ByteSize/blob/master/CHANGELOG.md.
Support multiple (*) and divide (/) operators of ByteSize object
Your coding agent can read these notes before it upgrades. Set up the MCP server →
View all release notes at https://github.com/omar/ByteSize/releases.
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_prefi
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:
LargestWholeNumberSymbol and LargestWholeNumberValue to LargestWholeNumberDecimalSymbol and LargestWholeNumberDecimalValue respectively.netstandard1.0 and net45.New Features:
ByteSize.FromKibiByte and ByteSize.FromKiloByte).long value as the number of bits.View all release notes at https://github.com/omar/ByteSize/releases.
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_prefi
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:
LargestWholeNumberSymbol and LargestWholeNumberValue to LargestWholeNumberDecimalSymbol and LargestWholeNumberDecimalValue respectively.netstandard1.0 and net45.New Features:
ByteSize.FromKibiByte and ByteSize.FromKiloByte).long value as the number of bits.View all release notes at https://github.com/omar/ByteSize/releases.
Namespace changed to back to ByteSizeLib from ByteSize.
Breaking Changes from Alpha 1:
ByteSizeLib from ByteSize.BinaryByteSize, DecimalByteSize, NonStandardByteSize structs.New Features:
ByteSize struct now contains all the methods to handle binary and decimal values.net45.For feedback, please comment here https://github.com/omar/ByteSize/pull/24
View all release notes at https://github.com/omar/ByteSize/releases.
Drop support for all platforms except netstandard2.0.
Breaking Changes:
netstandard2.0.ByteSize from ByteSizeLib.ByteSize renamed to NonStandardByteSize but keeps same functionality.New Features:
DecimalByteSize object: 1 KB = 1000 B with abbreivations KB, MB, etc.BinaryByteSize object: 1 KiB = 1024 B with abbreivations KiB, MiB, etc.View all release notes at https://github.com/omar/ByteSize/releases.
Add support for subtracting two ByteSize objects.
Add support for subtracting two ByteSize objects.
View all release notes at https://github.com/omar/ByteSize/releases.
Support .NET Standard 1.0 and .NET Framework 3.5.
Support .NET Standard 1.0 and .NET Framework 3.5.
View all release notes at https://github.com/omar/ByteSize/releases.
Support .NET Standard 1.0 and .NET Framework 3.5.
Support .NET Standard 1.0 and .NET Framework 3.5.
View all release notes at https://github.com/omar/ByteSize/releases.
Nothing published for this version
Fix TryParse to not throw exceptions. (#23 by @omar)
Fix ByteSize of zero ToString output. (#21 by @omar)
Improve memory footprint of a ByteSize object. (#20 by @atifaziz)
Fix parsing of numbers with group number separator like 1,500.65 mb. (#17 by @omar)
1,500.65 mb. (#17 by @omar)Localize number decimal separator for Parse and TryParse methods. (#15 by @omar)
Parse and TryParse methods. (#15 by @omar)Remove extra dependencies when targeting full framework or portable class library. (#16 by @omar)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
ByteSize.MinValue is now 0. (#12 by @taori)
ByteSize.MinValue is now 0. (#12 by @taori)Support Core CLR. (#11 by @rbarbe)
Add localization to ToString method. (#10 by @JamesSinclairBiomni)
ToString method. (#10 by @JamesSinclairBiomni)Rename project and namespace from ByteSize to ByteSizeLib to avoid namespace and class conflict. (#6 by @omar)
ByteSize to ByteSizeLib to avoid namespace and class conflict. (#6 by @omar)Add support for petabytes. (#7 by @JamesSinclairBiomni)
Add Parse/TryParse methods. (#2 by @GeorgeHahn)
- Initial Release
One column per quarter.