Nino.Serialization
2.0.0.1
See the version list below for details.
dotnet add package Nino.Serialization --version 2.0.0.1
NuGet\Install-Package Nino.Serialization -Version 2.0.0.1
<PackageReference Include="Nino.Serialization" Version="2.0.0.1" />
<PackageVersion Include="Nino.Serialization" Version="2.0.0.1" />
<PackageReference Include="Nino.Serialization" />
paket add Nino.Serialization --version 2.0.0.1
#r "nuget: Nino.Serialization, 2.0.0.1"
#:package Nino.Serialization@2.0.0.1
#addin nuget:?package=Nino.Serialization&version=2.0.0.1
#tool nuget:?package=Nino.Serialization&version=2.0.0.1
Nino
Definite useful and high performance serialisation library for C# projects, especially for Unity.
实用的高性能C#序列化库,尤其在Unity平台能带来令人难以置信的效益。
功能列表
Protobuf-net/MsgPack/BinaryFormatter/Bson/JSON等序列化库的平替方案,优势是更小体积,更高性能,支持多线程,支持多态
注意,该模块的序列化数据,仅支持在C#平台使用该库进行序列化和反序列化,无法跨语言使用
Nino.Serialization v2.0.0与所有1.x版本都不兼容,详细请查看使用教程
支持全部非托管类型(int/float/datetime/vector/etc)
支持任意Nullable类型
支持任意ICollection类型(list/dictonary/hashset/etc)
支持任意Span类型
支持自定义Nino序列化类型
支持嵌套上述类型(dictionary<int, list<自定义nino类型[]>>)
支持多态
支持数据校验
性能高,GC低!
测试案例
Test1 Nino VS Protobuf-net 序列化
Test2 Nino VS BinaryFormatter 序列化
Test3 Nino VS Protobuf-net 反序列化
Test4 Nino VS BinaryFormatter 反序列化
Test5 Nino VS MongoDB.Bson 序列化以及反序列化
Test6 Nino VS MsgPack 序列化以及反序列化
Test7 自定义Nino序列化反序列化委托
Test8 自动收集全部字段进行序列化/反序列化(无需给单个字段或属性打标签)
Test9 基础类型序列化反序列化
Test10 复杂结构类型序列化反序列化
Test11 ILRuntime测试(需要搭配使用教程启用ILRuntime)
真机测试 可以打IL2CPP或Mono包进行测试(对比了Nino Reflection/Code Gen与Protobuf-net/BinaryFormatter/Bson/MsgPack Code Gen的序列化性能、序列化体积、反序列化性能)
Protobuf-net与Bson在IL2CPP下暂不支持字典序列化
目录结构
- Docs,文档
- src,Nino源码
- Nino_Unity,Nino Unity 2021及以上版本的工程,包含源码和测试代码(暂未发布v2.0.0 unity版本)
- Performance,性能报告
在Unity平台使用
暂未发布Unity版本,预计2024年8月推出
在非Unity平台使用
使用NuGet
NuGet里搜
Nino.SerializationPM> Install-Package Nino.Serialization -Version 2.0.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- System.Buffers (>= 4.5.1)
- System.Memory (>= 4.5.5)
-
.NETFramework 4.8
- System.Buffers (>= 4.5.1)
- System.Memory (>= 4.5.5)
-
.NETStandard 2.0
- System.Buffers (>= 4.5.1)
- System.Memory (>= 4.5.5)
-
net5.0
- System.Buffers (>= 4.5.1)
- System.Memory (>= 4.5.5)
-
net6.0
- System.Buffers (>= 4.5.1)
- System.Memory (>= 4.5.5)
-
net7.0
- System.Buffers (>= 4.5.1)
- System.Memory (>= 4.5.5)
-
net8.0
- System.Buffers (>= 4.5.1)
- System.Memory (>= 4.5.5)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Nino.Serialization:
| Package | Downloads |
|---|---|
|
Nino
High performance and low size binary serialization solution, especially for Unity. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0-beta.47 | 64 | 2/8/2026 |
| 4.0.0-beta.46 | 54 | 2/7/2026 |
| 4.0.0-beta.44 | 54 | 2/7/2026 |
| 4.0.0-beta.43 | 397 | 11/19/2025 |
| 4.0.0-beta.42 | 234 | 11/14/2025 |
| 4.0.0-beta.40 | 177 | 11/4/2025 |
| 4.0.0-beta.38 | 178 | 10/29/2025 |
| 4.0.0-beta.37 | 162 | 10/28/2025 |
| 4.0.0-beta.36 | 90 | 10/25/2025 |
| 4.0.0-beta.35 | 241 | 10/15/2025 |
| 4.0.0-beta.34 | 158 | 10/14/2025 |
| 4.0.0-beta.33 | 97 | 10/12/2025 |
| 4.0.0-beta.32 | 94 | 10/11/2025 |
| 4.0.0-beta.31 | 88 | 10/11/2025 |
| 4.0.0-beta.30 | 91 | 10/11/2025 |
| 4.0.0-beta.29 | 91 | 10/11/2025 |
| 4.0.0-beta.28 | 77 | 10/11/2025 |
| 4.0.0-beta.27 | 136 | 10/10/2025 |
| 3.9.17 | 277 | 7/30/2025 |
| 2.0.0.1 | 390 | 7/2/2024 |
Nino.Serialization v2.0.0
- [Optimisation] More efficient code generated via Source Generator
- [Feature] Polymorphism Solution for Collections Serialization