XmlSerializer - There was an error reflecting type

后端 未结 18 1609
借酒劲吻你
借酒劲吻你 2020-11-28 02:46

Using C# .NET 2.0, I have a composite data class that does have the [Serializable] attribute on it. I am creating an XMLSerializer class and passi

18条回答
  •  [愿得一人]
    2020-11-28 03:33

    All the objects in the serialization graph have to be serializable.

    Since XMLSerializer is a blackbox, check these links if you want to debug further into the serialization process..

    Changing where XmlSerializer Outputs Temporary Assemblies

    HOW TO: Debug into a .NET XmlSerializer Generated Assembly

提交回复
热议问题