[XmlRoot("ConfigurationRoot")]
public class XmlDBConfiguration
{
[XmlArray("Customers")]
[XmlArrayItem("Customer", typeof(Customer))]
public ArrayList _customers;
private Dictionary<string, Customer> _customerDictionary;}
Is it possible to define the Element Name (in my case it is ConfigurationRoot) with a variable from another static class or any other way? I want to define my class that is going to be serialized (in my case it is Customer) as well. Is it possible to put a variable there and change it when I create an instance of that ?
Thanks in advance