Meziantou.Framework.ByteSize
3.0.0
Prefix Reserved
dotnet add package Meziantou.Framework.ByteSize --version 3.0.0
NuGet\Install-Package Meziantou.Framework.ByteSize -Version 3.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Meziantou.Framework.ByteSize" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Meziantou.Framework.ByteSize" Version="3.0.0" />
<PackageReference Include="Meziantou.Framework.ByteSize" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Meziantou.Framework.ByteSize --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Meziantou.Framework.ByteSize, 3.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Meziantou.Framework.ByteSize@3.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Meziantou.Framework.ByteSize&version=3.0.0
#tool nuget:?package=Meziantou.Framework.ByteSize&version=3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Meziantou.Framework.ByteSize
ByteSize represent a value in the Byte unit. It can parse, display, and compare values.
// Create an instance of ByteSize
var size = new ByteSize(10); // 10 bytes
_ = ByteSize.FromKiloByte(10);
_ = ByteSize.From(10, ByteSizeUnit.GigaByte);
_ = ByteSize.Parse("10MB");
var parsed = ByteSize.TryParse("10MB", out var size);
var parsed = ByteSize.TryParse("10MB", CultureInfo.InvariantCulture, out var size);
// Formatting
size.ToString(); // Automatically find the best unit
size.ToString("MB"); // Display the value in megabytes
// Supports B, kB, kiB, MB, MiB, GB, GiB, TB, TiB, EB, EiB
// Comparisons
ByteSize a;
ByteSize b;
_ = a == b;
_ = a != b;
_ = a < b;
_ = a <= b;
_ = a > b;
_ = a >= b;
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Meziantou.Framework.ByteSize:
| Package | Downloads |
|---|---|
|
NetcodeHub.Packages.Components.FileUpload
The NetcodeHubFileUpload package provides a versatile and easy-to-use file upload component for Blazor applications. With this package, developers can seamlessly integrate file upload functionality into their applications, allowing users to upload files with ease and efficiency. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 297 | 5/6/2026 |
| 2.1.9 | 2,931 | 1/18/2026 |
| 2.1.8 | 1,672 | 11/16/2025 |
| 2.1.7 | 979 | 10/19/2025 |
| 2.1.6 | 958 | 9/3/2025 |
| 2.1.5 | 931 | 5/25/2025 |
| 2.1.4 | 5,144 | 3/23/2025 |
| 2.1.3 | 284 | 3/1/2025 |
| 2.1.2 | 1,192 | 11/17/2024 |
| 2.1.1 | 8,328 | 11/15/2023 |
| 2.1.0 | 43,375 | 6/12/2022 |
| 2.0.0 | 1,111 | 3/31/2022 |
| 1.3.3 | 2,159 | 7/14/2021 |
| 1.3.2 | 536 | 5/3/2021 |
| 1.3.1 | 541 | 4/22/2021 |
| 1.3.0 | 655 | 9/24/2020 |
| 1.2.0 | 732 | 8/15/2020 |
| 1.1.0 | 733 | 8/15/2020 |
| 1.0.0 | 614 | 8/12/2020 |