Complex data types in WCF?

后端 未结 14 1082
自闭症患者
自闭症患者 2020-12-12 19:48

I\'ve run into a problem trying to return an object that holds a collection of childobjects that again can hold a collection of grandchild objects. I get an error, \'connect

14条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 20:27

    Enums get a DataContract attribute, like any class would, but the enum values aren't supposed to have DataMember attributes on them.

    Change them to EnumMember and you'll stop getting this inscrutable error.

提交回复
热议问题