J
JPK
I am having trouble with this. Here is a simle example
class A
{
string a;
ISomeInterface x;
}
....
XmlSerializer xmlSer = new XmlSerializer(typeof(A));
Exception:: + InnerException {"Cannot serialize member x of type
A, because it is an interface."}
I have tried [NonSerialized] but it doesn't work on interfaces
Thanks,
JIM
class A
{
string a;
ISomeInterface x;
}
....
XmlSerializer xmlSer = new XmlSerializer(typeof(A));
Exception:: + InnerException {"Cannot serialize member x of type
A, because it is an interface."}
I have tried [NonSerialized] but it doesn't work on interfaces
Thanks,
JIM