Hello,
I am learning how to use the XmlSerializer. I have a class that has a
member of type
System.Drawing.Font such as:
[XmlInclude(typeof(System.Drawing.Font))]
[XmlRoot("ProModelChartFX")]
public class MyClass
{
Font font;
public Font Font
{
get{return font;}
set{font = value;}
}
public MyClass(){}
}
Whenever I try to:
XmlSerializer ser = new XmlSerializer(typeof(MyClass));
an exception is thrown of "Additional information: There was an error
reflecting type MyClass.MyClass."
Does the Font type support serialization? Do I have create my own special
font object and include it? Any advice or links would much appreciated.
Thanks in advanced!
Dan H.