P
Paul E Collins
I'm using XmlSerializer.Serialize method from System.Xml.Serialization
on one of my own classes and getting the following error:
"An unhandled exception of type 'System.InvalidOperationException'
occurred in system.xml.dll
Additional information: There was an error reflecting type
'<MyProjectName>.<MyClassName>'."
My class contains various instances of other classes (such as Uri and
Regex), and I know that some of them can't be serialised and must have
[XmlIgnore] applied and custom properties written for them instead,
but there are lots of these (some nested) - is there any way that I
can find out which particular field in which class is causing the
exception?
Eq.
on one of my own classes and getting the following error:
"An unhandled exception of type 'System.InvalidOperationException'
occurred in system.xml.dll
Additional information: There was an error reflecting type
'<MyProjectName>.<MyClassName>'."
My class contains various instances of other classes (such as Uri and
Regex), and I know that some of them can't be serialised and must have
[XmlIgnore] applied and custom properties written for them instead,
but there are lots of these (some nested) - is there any way that I
can find out which particular field in which class is causing the
exception?
Eq.