This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// XML DESERIALIZER | |
// Used for deserializing XML serialized by the default C# serializer into Models | |
// that match the XML structure. | |
public static T XmlDeserializeFromString<T>(string objectData) | |
{ | |
return (T)XmlDeserializeFromString(objectData, typeof(T), typeof(T).Name); | |
} | |
public static object XmlDeserializeFromString(string objectData, Type type, string rootname) |