SpaceWizards.NetSerializer 1.1.0

Suggested Alternatives

SpaceWizards.NetSerializer 1.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package SpaceWizards.NetSerializer --version 1.1.0
                    
NuGet\Install-Package SpaceWizards.NetSerializer -Version 1.1.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="SpaceWizards.NetSerializer" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SpaceWizards.NetSerializer" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="SpaceWizards.NetSerializer" />
                    
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 SpaceWizards.NetSerializer --version 1.1.0
                    
#r "nuget: SpaceWizards.NetSerializer, 1.1.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 SpaceWizards.NetSerializer@1.1.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=SpaceWizards.NetSerializer&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=SpaceWizards.NetSerializer&version=1.1.0
                    
Install as a Cake Tool

SpaceWizards.NetSerializer - A fast, simple serializer for .Net

SpaceWizards.NetSerializer is the Space Wizards fork of NetSerializer by Tomi Valkeinen.

NetSerializer is a simple and very fast serializer for .Net languages, aimed at sending data over the network.

The main pros of NetSerializer are:

  • Excellent for network serialization
  • Supports classes, structs, enums, interfaces, abstract classes
  • No versioning or other extra information is serialized, only what is strictly needed
  • No type IDs for primitive types, structs or sealed classes, so less data to be sent
  • No dynamic type lookup for primitive types, structs or sealed classes, so deserialization is faster
  • No extra attributes needed (like DataContract/Member), just add the standard [Serializable]
  • Thread safe without locks
  • The data is written to the stream and read from the stream directly, without the need for temporary buffers

The simpleness of NetSerializer has a drawback which must be considered by the user: no versioning or other meta information is sent, which means that the sender and the receiver have to have the same versions of the types being serialized.

This means that it's a bad idea to save the serialized data for longer periods of time, as a version upgrade could make the data non-deserializable.

For this reason the best (and perhaps only) use for NetSerializer is for sending data over network, between a client and a server which have verified version compatibility when the connection is made.

Documentation

See Documentation page.

Performance

See Performance page.

License

MPL-2.0, see LICENSE. Original work copyright Tomi Valkeinen.

Product Compatible and additional computed target framework versions.
.NET 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.

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
1.1.1 17,579 11/6/2026
1.1.0 112 11/6/2026 1.1.0 is deprecated because it has critical bugs.
1.0.0 10,759 11/2/2026 1.0.0 is deprecated because it has critical bugs.
1.0.0-rc.1 81 11/1/2026 1.0.0-rc.1 is deprecated because it has critical bugs.