
Please refer to the following article for a workaround:Īll platforms below. SharpSerializer can deserialize only types providing the default constructor. If you like to serialize fields, they have to be wrapped in properties. SharpSerializer serializes only public properties. There are more usage examples on the tutorial page:

Var obj2 = serializer.Deserialize("test.xml") Var obj = CreateMyVerySophisticatedObject() In the Command Line (.NET CLI) use the dotnet command: In Visual Studio open NuGet Package Manager and type-in: NET Standard 1.3 there are additional API overloads providing not only serialization to a stream but also directly to a file by its name.

NET Standard 1.0 or above.Īccording to the. NET Framework 4.5.2 and above.ĭue to the new syntax of the csproj file you need Visual Studio 2017 for development of SharpSerializer. SharpSerializer 3.x was ported from CodePlex to GitHub. 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. SharpSerializer is an open source XML and binary serializer for.
