EZBinarySerializer 0.1.6-beta

This is a prerelease version of EZBinarySerializer.
dotnet add package EZBinarySerializer --version 0.1.6-beta
                    
NuGet\Install-Package EZBinarySerializer -Version 0.1.6-beta
                    
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="EZBinarySerializer" Version="0.1.6-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EZBinarySerializer" Version="0.1.6-beta" />
                    
Directory.Packages.props
<PackageReference Include="EZBinarySerializer" />
                    
Project file
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 EZBinarySerializer --version 0.1.6-beta
                    
#r "nuget: EZBinarySerializer, 0.1.6-beta"
                    
#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 EZBinarySerializer@0.1.6-beta
                    
#: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=EZBinarySerializer&version=0.1.6-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=EZBinarySerializer&version=0.1.6-beta&prerelease
                    
Install as a Cake Tool

GitHub stars License

🚀 Quick Start

1. Install

nuget install EZBinarySerializer

2. Basic Usage

using EZBinarySerializer;

namespace MyNamespace;

[BinarySerializable]                    // Use the BinarySerializable attribute.
public partial class MyClass {          // Mark your class a partial to allow extension.
    public int MyPublicValue = 0;       // Public fields and properties will be serialized.
    private int MyPrivateValue = 0;     // Private fields will be ignored.
    [BinarySerializerIgnore]            // Use BinarySerializableIgnore attribute to ignore member.
    public int MyOtherPublicValue = 0;
}

MyClass myClass = new();
Memory<byte> data = MyClass.ToBinary(myClass);  // Serialize with the static method on the class.
int bytesRead = MyClass.FromBinary(data, out MyClass deserialized);  // Deserialize the same way.

3. Build your project

Build using MSBUILD and the source generator will run and provide the code extensions needed for serialization.

Done!

✨ Features

Feature Description
🦆 Polymorphism Polymorphic serialization with interfaces and abstract classes
🎨 Standard Types Support for many standard types including selections from System.Numerics and System.Collections.Generic
🕹 AOT compatible No reflection, none, zilch
🚲 Easy to use Simple attribute based interface
📏 Extend across multiple assemblies Inherit models from other projects and make your own additions
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.6-beta 62 6/12/2026
0.1.5-beta 60 4/28/2026
0.1.4-beta 59 4/21/2026
0.1.3-beta 60 4/20/2026
0.1.2-beta 66 4/8/2026
0.1.1-beta 58 4/7/2026
0.1.0-beta 64 4/3/2026