|sorry, im not looking for you to write it for me. This code is for my own person application i am developing as i learn on my own. I am trying to self teach myself C#. I am not working on this for a school or business project.
I am reading over the class and trying to figure out how to include this in my method. Here is what i have so far. Can you at least show me where i might be going wrong? i used the link you sent me as a template.
<pre lang="c#"> public void XMLStrings(string filename)
// Create an instance of the XmlSerializer specifying type and namespace.
XmlSerializer serializer = new
// A FileStream is needed to read the XML document.
FileStream fs = new FileStream(filename, FileMode.Open);
XmlReader reader = XmlReader.Create(fs);
// Declare an object variable of the type to be deserialized.
// Use the Deserialize method to restore the object's state.
i = (XMLClass)serializer.Deserialize(reader);
// Write out the properties of the object.
i.something1 + "\t" +
i.something2 + "\t" +