Experior saves a model by serializing all necessary model entities (actually their corresponding Info objects) into specific xml files and compressing those into an experior file.
Loading a model works vice versa, the experior file is uncompressed and each xml file it contains is deserialized.
The serializing and deserializing can be done using System.Xml.Serialization.XmlSerializer.
However Experior also provides a utility class Experior.Core.Environment.Serialization to make this process simpler.
Example:
// Log all serializable types
List<Type> serializable = Experior.Core.Environment.SerializableTypes;
Experior.Core.Environment.Log.Write("We found " + ser.Count + " serializable types.");
foreach (var t in serializable)
{
Experior.Core.Environment.Log.Write(" : " + t.ToString());
}
// create the test.xml file and serialize the Info object of this assembly into it
Experior.Core.Environment.Serialization.Serialize("test.xml", this.Info);
// load the test.xml file and deserialize into a AssemblyInfo object
AssemblyInfo res = (AssemblyInfo)Experior.Core.Environment.Serialization.DeSerialize("test.xml", typeof(AssemblyInfo));
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |