Click here to Skip to main content
15,896,726 members
Articles / Programming Languages / C#

UniversalSerializer

Rate me:
Please Sign up or sign in to vote.
4.97/5 (108 votes)
15 Apr 2018Ms-RL31 min read 264.5K   4K   299  
An universal and easy serialization library for .NET and .NET Core.
PROJECTS & DIRECTORIES:

. "UniversalSerializer Benchmark\UniversalSerializer Benchmark.sln"
	This application compares resource consumption of 12 serializers, including 4 versions of UniversalSerializer.
. "UniversalSerializer Desktop Debug Libs\UniversalSerializer Desktop Debug Libs.sln"
	This solution compiles the 4 DLLs for the desktop, in debug mode.
. "UniversalSerializer Desktop Release Libs\UniversalSerializerReleaseLibs.sln"
	This solution compiles the 4 DLLs for the desktop, in release mode.
. "UniversalSerializer Lib\UniversalSerializer.csproj"
	This project compiles the main library.
	You can add this project to your own solution.
. "UniversalSerializer Silverlight\UniversalSerializer Silverlight.sln"
	This solution contains a test application for Silverlight and the corresponding DLL project.
. "UniversalSerializer Windows Phone 8\UniversalSerializer Windows Phone 8.sln"
	This solution contains a test application for Silverlight for Windows Phone 8 and the corresponding DLL project.
	Please note this DLL will not run on Windows Phone 7.1 (a IsByRef property misses on that platform and makes the DLL to not work properly). I did not try WP 7.5.
. "UniversalSerializerPortableLib\UniversalSerializerPortableLib.sln"
	This solution contains a test application and the corresponding PCL (Portable Class Library) project.
. "UniversalSerializerWinForm\UniversalSerializerWinForm.sln"
	This solution contains a test application for WinForm and the corresponding DLL projects (the general DLL and a specialized DLL).
. "UniversalSerializerWPF\UniversalSerializerWPF Tester\UniversalSerializer Tester.sln"
	This solution contains a test application for WPF and the corresponding DLL projects (the general DLL and a specialized DLL).

Remarks:
. Some source files are used in various projects. You should not delete directories, you could lose a needed source file.
. There is no compiled files in this archive.
. All projects were made under Visual Studio 2012, and are compatible with Visual Studio 2010. I did not try VS 2013 yet.
. Some solution directories contain additional informations in a text file, please read them.

LICENSE:

UniversalSerializer is published under the Ms-RL license.
See License.html or https://www.microsoft.com/en-us/openness/licenses.aspx
In short, this license lets you use this code for anything. But if you modify this code and if you distribute a software based on this modified code, you have to publish the modified source code files (not the other source code files). Please read the license for more details.

Some code comes from Mono (http://www.mono-project.com) under the MIT/X11 license (http://www.mono-project.com/FAQ:_Licensing).
See mentions in the source code.

Some code comes from protobuf-net (https://code.google.com/p/protobuf-net/) under the Apache 2 license.
See mentions in the source code.

HISTORY:

Version 2.14.3, 2014-03-17
. New filter: CanTestDefaultConstructor.
. New filter: DefaultConstructorTestCleaner. Useful for WPF's System.Windows.Window.
. New container: DependencyPropertyContainer. Uses the right static DependencyProperty.
. Improved: benchmark tells when file paths does not exist.
. Improved: CLRTypeConverterContainer.cs checks type convertion capability first.
. Modified: benchmark is now 64 bits, as the majority of installed Windows now.
. Fixed: test solution for Windows Phone 8 now works well.
. Fixed: bug with public readonly fields as constructor parameters.
. Fixed: some translations in the source code.

Version 2.0, 2013-10-09
. Brand new serializer.

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under Microsoft Reciprocal License


Written By
Software Developer (Senior) independent
France France
Hi !

I made my first program on a Sinclair ZX-81.
Since that day, I have the virus of computers. Smile | :)

Here is my website:
https://chrisbertrand.net

And my blog:
https://chrisbertrandprogramer.wordpress.com/

Comments and Discussions