- Mar 20, 2020
- Programming Experience
Ah i see now where the OrderedItem comes from, I agree I need to spend more time on serialization etc but i'm on a bit of a time crunch with this one. I also need more experience with XML , this is one section of my development career that i have ignored completely over the years. Ive created the OrderedItem class and testing your suggestion out but i get a "cannot implicitly covert type to string" in this below line.No. It's a class where the XML data will be read into. Typically the class type name matches the XML element name but this can be overridden. You should take time to read about XML serialization and deserialization instead of just throwing code at the screen to see what sticks.
Serialization converts an object into a form that can be transported. This article provides an overview of XML serialization and the XmlSerializer class.docs.microsoft.com