↧
Answer by Richard Schneider for How to? XML Serialization of a Class Object
The XML serialiser requires that public properties are gettable and settable. TotalHops and TaskHops do meet this criteria.Try something like:public class Flow{ public int CurrentHop { get; set; }...
View ArticleAnswer by Yuck for How to? XML Serialization of a Class Object
Your serialization method should look like this:public static string SerializeAnObject(Object item) { if (item == null) return null; var stringBuilder = new StringBuilder(); var itemType =...
View ArticleHow to? XML Serialization of a Class Object
I am trying to Serialize a Class object and store the xml in a string but each time I get an exception message "There was an error generating xml document"The class object I am trying to serialize is...
View Article