Click here to Skip to main content
15,884,298 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 257.5K   4K   299  
An universal and easy serialization library for .NET and .NET Core.
A bit experimental.
Please give it a try if none of other DLLs fit your needs.

The portable library is limited:
. For some unknown reason, a System.Security.VerificationException is thrown when setting a property of a framework structure (using setter from a compiled Linq Expression).
  example: System.Windows.Size, Width property.
	And of course PropertyInfo.SetValue is completely useless..
. No container for TypeConverter (CLRTypeConverterContainer).
. No container for ISerializable and SerializableAttribute (CLRBinaryFormatterContainer).
. PCL has no function to find appdomain assemblies. We try to find AppDomain in the framework using reflection, but there is no guarantee we find it. Therefore some types can not be  deserialized.

IMPORTANT: In case of failure on project loading in Visual Studio, check this line in UniversalSerializerPortableLib.csproj :
<ProjectTypeGuids></ProjectTypeGuids>
This line should not be cut.

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