ResultCore.Serialization.J
0.5.1
dotnet add package ResultCore.Serialization.J --version 0.5.1
NuGet\Install-Package ResultCore.Serialization.J -Version 0.5.1
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="ResultCore.Serialization.J" Version="0.5.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ResultCore.Serialization.J" Version="0.5.1" />
<PackageReference Include="ResultCore.Serialization.J" />
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 ResultCore.Serialization.J --version 0.5.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ResultCore.Serialization.J, 0.5.1"
#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 ResultCore.Serialization.J@0.5.1
#: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=ResultCore.Serialization.J&version=0.5.1
#tool nuget:?package=ResultCore.Serialization.J&version=0.5.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Result
Result is a lightweight library designed to simplify error handling in C# applications. It provides a structured way to represent success and failure states without relying on exceptions for control flow.
- The Error Model see
BaseError. - More information can be found in the tests located in the
ResultCore.Testsproject.
About Benchmarks
BenchmarkDotNet.Aritfacts.2025-11-13_23-36-33Z
Result<MyClass, BaseError>大小为 40 byte。Result<MyClass, FileError>大小为 16 byte。- 调用
list.Add()
BenchmarkDotNet.Aritfacts.2025-11-14_01-57-33Z
Result<MyClass, BaseError>大小为 40 byte。Result<MyClass, FileError>大小为 32 byte。- 调用
list.Add()
BenchmarkDotNet.Aritfacts.2025-11-15_13-23-49Z
Result<MyClass, BaseError>大小为 40 byte。Result<MyClass, FileError>大小为 32 byte。- 不调用
list.Add()
BenchmarkDotNet.Aritfacts.2025-11-15_15-18-51Z
Result<MyClass, BaseError>大小为 40 byte。Result<MyClass, FileError>大小为 32 byte。- 不调用
list.Add(),不创建 list
BenchmarkDotNet.Aritfacts.2025-11-16_16-55-59Z
Result<MyClass, BaseError>大小为 40 byte。Result<MyClass, FileError>大小为 32 byte。- 不调用
list.Add(),不创建 list - 输出 Inline
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 was computed. 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.
-
net9.0
- MemoryPack (>= 1.21.4)
- MessagePack (>= 3.1.6)
- Microsoft.Extensions.DependencyInjection (>= 9.0.16)
- Microsoft.Orleans.Serialization (>= 9.2.1)
- System.Text.Json (>= 9.0.16)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.