I am using WCF to return a serialized custom object to a web page which access the WCF using a script manager. The problem here is the object returned all the private members instead of the public members although the private members are marked private.
The flow behind this: the asp.net web site stores the object in SQL State session; all the classes in the object are marked serialized as it is stored in SQL State Session. All the public properties in the classes are marked as <DataMember>.
When trying to access this object from the client it lists down all the private members of the class instead of listing the public members.
View Complete Post