c# - XmlSerializer - There was an error reflecting type -


using c# .net 2.0, have composite data class have [serializable] attribute on it. creating xmlserializer class , passing constructor:

xmlserializer serializer = new xmlserializer(typeof(dataclass)); 

i getting exception saying:

there error reflecting type.

inside data class there composite object. need have [serializable] attribute, or having on top object, recursively apply objects inside?

look @ inner exception getting. tell field/property having trouble serializing.

you can exclude fields/properties xml serialization decorating them [xmlignore] attribute.

i don't think xmlserializer uses [serializable] attribute, doubt problem.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -