Public Class - “is inaccessible due to its protection level. Only public types can be processed.”
I am doing a test project to learn about XML serialization of an object, and I am getting an odd runtime error: namespace SerializeTest { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void serializeConnection(Conn connection) { XmlSerializer serializer = new XmlSerializer(typeof(Conn)); TextWriter textWriter = new StreamWriter(@"serialized.xml"); serializer.Serialize(textWriter, connection); textWriter.Close(); } static List<Conn> deserializeConnection() { XmlSerializer deserializer = new