![]() |
VOOZH | about |
dotnet add package SharpSerializer --version 4.0.2
NuGet\Install-Package SharpSerializer -Version 4.0.2
<PackageReference Include="SharpSerializer" Version="4.0.2" />
<PackageVersion Include="SharpSerializer" Version="4.0.2" />Directory.Packages.props
<PackageReference Include="SharpSerializer" />Project file
paket add SharpSerializer --version 4.0.2
#r "nuget: SharpSerializer, 4.0.2"
#:package SharpSerializer@4.0.2
#addin nuget:?package=SharpSerializer&version=4.0.2Install as a Cake Addin
#tool nuget:?package=SharpSerializer&version=4.0.2Install as a Cake Tool
SharpSerializer is an open source XML and binary serializer for .NET. With only one line of code it can serialize types like: multidimensional array, nested array, array-of-arrays, polymorphic object (where value is inherited from the property type), generic type, generic listing (i.e. dictionary, collection) and many more...
Project URL: https://github.com/polenter/SharpSerializer
License URL: https://github.com/polenter/SharpSerializer/blob/master/LICENSE.txt
SharpSerializer requires .NET Framework 4.6.2 or a .NET platform implementing .NET Standard 2.0.
Below link contains a list with supported .NET implementations:
.NET Standard 2.0
Using NuGet is recommended.
In Visual Studio open NuGet Package Manager and type-in: Install-Package Polenter.SharpSerializer
In the Command Line (.NET CLI) use the dotnet command:
dotnet add package SharpSerializer
The following libraries should be attached to your deployment package:
var obj = CreateMyVerySophisticatedObject();
var serializer = new SharpSerializer();
serializer.Serialize(obj, "test.xml");
var obj2 = serializer.Deserialize("test.xml");
There are more usage examples on the tutorial page:
http://sharpserializer.com/en/tutorial/
SharpSerializer serializes only public properties. If you like to serialize fields or private properties, they have to be wrapped in public properties.
SharpSerializer can deserialize only types providing public or private default constructor.
Please refer to the following article for a workaround:
https://www.codeproject.com/Articles/240621/How-to-serialize-data-effectively-Custom-serializa
Abandoned support for netstandard1.0, netstandard1.3, netcoreapp3.1 and net452.
Using .NET 8 in demo projects and in unit tests.
All platforms below .NET Framework 4.5 are no more supported.
Support for Portable Class Library (PCL) was depreciated. The following file is no more deployed:
There are no breaking changes in the API in .NET Framework 4.5.2 and above.
There are no breaking changes in the API expected, if using PCL, however it's not thoroughly tested yet.
The BSD License (BSD) was changed to MIT License
cd ./SharpSerializer
dotnet build -c Release
dotnet pack -c Release
dotnet nuget push .\bin\Release\SharpSerializer.4.0.2.nupkg -k <your-nuget-api-key>
There are some tests concerning deploying and using SharpSerializer on different platforms, e.g. .NET Framework 4.5.2, .NET Core 1.0, 2.0 and Xamarin.
More tests on different platforms are however appreciated.
Additional contributors are welcome. Just change source code, create unit tests and request a pull.
Pawel Idzikowski, polenter (owner)
This project is licensed under the MIT License - see LICENSE.txt file for details.
The following copyright notice should be attached to your software (e.g. about box):
This software includes SharpSerializer - Copyright (c) 2010 Pawel Idzikowski
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on SharpSerializer:
| Package | Downloads |
|---|---|
|
Envoc.Core.Audit.EF
Envoc.Core.Audit.EF |
|
|
S4S
S4S is a SDK that will allow you to create custom controls for your application enabling accessibility on them. This includes resizing the controls and their fontsize or enabling scroll helpers to remove the swipe motion. |
|
|
HandpointSDK
Handpoint Windows SDK |
|
|
EventWay.EventStore.AzureAppendBlob
Package Description |
|
|
EventWay.MessageSerializer.SharpSerializer
Package Description |
Showing the top 4 popular GitHub repositories that depend on SharpSerializer:
| Repository | Stars |
|---|---|
|
pwntester/ysoserial.net
Deserialization payload generator for a variety of .NET formatters
|
|
|
FDlucifer/Proxy-Attackchain
Proxylogon & Proxyshell & Proxyoracle & Proxytoken & All exchange server history vulns summarization :)
|
|
|
vchelaru/FlatRedBall
Cross-platform 2D game engine focused on ultimate productivity built in .NET
|
|
|
irsdl/ysonet
Deserialization payload generator for a variety of .NET formatters
|
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.2 | 138,225 | 3/24/2024 |
| 3.0.2 | 171,247 | 12/28/2021 |
| 3.0.1 | 1,303,655 | 10/8/2017 |
| 2.20.0 | 406,340 | 3/21/2014 |
| 2.18.0 | 81,748 | 1/29/2012 |
| 2.16.0 | 32,846 | 11/9/2011 |
| 2.15.0 | 3,191 | 10/25/2011 |
| 2.14.0 | 3,132 | 10/23/2011 |
| 2.13.1 | 3,153 | 8/19/2011 |
| 2.13.0 | 3,664 | 8/6/2011 |
| 2.12.0 | 3,233 | 7/31/2011 |
| 2.11.0 | 3,255 | 7/28/2011 |
| 2.10.0 | 3,279 | 6/19/2011 |
| 2.9.0 | 15,419 | 5/9/2011 |
Support for .NET Standard 2.0 and .NET Framework 4.6.2.