WPF +WCF
-
i want to serialize the collection class in wcf to be sent to wpf application and used there. i am adding CollectionDataContract attribute to the class and DataMember attribute to the method but not getting the result. Can one give me some link where i can get the exact procedure .
-
i want to serialize the collection class in wcf to be sent to wpf application and used there. i am adding CollectionDataContract attribute to the class and DataMember attribute to the method but not getting the result. Can one give me some link where i can get the exact procedure .
be sure that your class is public & you marked the class as [DataContract]
Regards, - Kunal Chowdhury (My Blog)
-
be sure that your class is public & you marked the class as [DataContract]
Regards, - Kunal Chowdhury (My Blog)
no we have to take CollectionDataContract attribute and then how to do it i am not getting.
-
i want to serialize the collection class in wcf to be sent to wpf application and used there. i am adding CollectionDataContract attribute to the class and DataMember attribute to the method but not getting the result. Can one give me some link where i can get the exact procedure .
-
i want to serialize the collection class in wcf to be sent to wpf application and used there. i am adding CollectionDataContract attribute to the class and DataMember attribute to the method but not getting the result. Can one give me some link where i can get the exact procedure .
What do you mean by collectiondatacontract ? See that [DataContract] and [DataMember] attribute are added properly. MJ http:\\v2attechhorizon.blogspot.com
vijaykishan
-
no we have to take CollectionDataContract attribute and then how to do it i am not getting.
Are you using it for your own serializable collection? You can only apply it to a valid serializable collection recognised by
System.Runtime.Serialization.DataContractSerializer
. If your class is a normal class (not a collection), then you have to useDataContract
attribute for that...Regards, - Kunal Chowdhury (My Blog)