XmlSerializer - There was an error reflecting type

后端 未结 18 1657
借酒劲吻你
借酒劲吻你 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:38

    Most common reasons by me:

     - the object being serialized has no parameterless constructor
     - the object contains Dictionary
     - the object has some public Interface members
    

提交回复
热议问题