Skip to content
LosManos edited this page Apr 24, 2021 · 3 revisions

DeSerialiser

Does

Serialises and deserialises an object. No bells. No whistles. Just a wrapper.

Serialize.ToXml

The problem solved

Every time one wants to serialise an object to XML one has to go google hunting. With this method it is already solved and unit tested.

class MyClass{
    string MyProp{ get; set; }
}
var myObject = new MyClass{ MyProp = "asdf"};
var xmlDocument = CompulsoryCow.Serialize( myObject );

Deseralize.FromXml

The problem solved

Every time one wants to deserialise an object from XML one has to go google hunting. With this method it is already solved and unit tested.

class MyClass{
    string MyProp{ get; set; }
}
var myObject = CompulsoryCow.Deserialize<MyClass>( myXmlString );

Code

Deserialiser
Serialiser