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
Enums get a DataContract attribute, like any class would, but the enum values aren't supposed to have DataMember attributes on them.
DataContract
DataMember
Change them to EnumMember and you'll stop getting this inscrutable error.
EnumMember