A
Ashutosh
Hi,
I have these 2 classes, I can serialize them using Binary Serializer but
not with XML serializer. XmlSerializer constructor throws execption
"There was an error reflecting type 'AB.TBSettings'."
Any idea what is wrong here??
[Serializable]
public class Applications
{
public string Path;
public string DisplayName;
[OptionalField]
public string Arguments;
}
[Serializable]
public class TBSettings
{
public Hashtable credentials = new Hashtable();
//public OrderedDictionary applications = new OrderedDictionary();
[XmlArray]
public Applications[] applications = new Applications[0];
//public
public Point MainFromLocation = new Point(0, 0);
[NonSerialized]
[XmlIgnore]
private static TBSettings theObj = null;
public TBSettings()
{
}
}
Thanks & Regards,
Ashutosh
I have these 2 classes, I can serialize them using Binary Serializer but
not with XML serializer. XmlSerializer constructor throws execption
"There was an error reflecting type 'AB.TBSettings'."
Any idea what is wrong here??
[Serializable]
public class Applications
{
public string Path;
public string DisplayName;
[OptionalField]
public string Arguments;
}
[Serializable]
public class TBSettings
{
public Hashtable credentials = new Hashtable();
//public OrderedDictionary applications = new OrderedDictionary();
[XmlArray]
public Applications[] applications = new Applications[0];
//public
public Point MainFromLocation = new Point(0, 0);
[NonSerialized]
[XmlIgnore]
private static TBSettings theObj = null;
public TBSettings()
{
}
}
Thanks & Regards,
Ashutosh