Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. WPF +WCF

WPF +WCF

Scheduled Pinned Locked Moved WPF
csharpwpfwcf
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bhavna4321
    wrote on last edited by
    #1

    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 .

    K J V 3 Replies Last reply
    0
    • B bhavna4321

      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 .

      K Offline
      K Offline
      Kunal Chowdhury IN
      wrote on last edited by
      #2

      be sure that your class is public & you marked the class as [DataContract]

      Regards, - Kunal Chowdhury (My Blog)

      B 1 Reply Last reply
      0
      • K Kunal Chowdhury IN

        be sure that your class is public & you marked the class as [DataContract]

        Regards, - Kunal Chowdhury (My Blog)

        B Offline
        B Offline
        bhavna4321
        wrote on last edited by
        #3

        no we have to take CollectionDataContract attribute and then how to do it i am not getting.

        K 1 Reply Last reply
        0
        • B bhavna4321

          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 .

          J Offline
          J Offline
          Jammer 0
          wrote on last edited by
          #4

          You would be better off including some code in order to help people help you.

          Jammer My Blog | Articles

          1 Reply Last reply
          0
          • B bhavna4321

            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 .

            V Offline
            V Offline
            Vijaykishan
            wrote on last edited by
            #5

            What do you mean by collectiondatacontract ? See that [DataContract] and [DataMember] attribute are added properly. MJ http:\\v2attechhorizon.blogspot.com

            vijaykishan

            1 Reply Last reply
            0
            • B bhavna4321

              no we have to take CollectionDataContract attribute and then how to do it i am not getting.

              K Offline
              K Offline
              Kunal Chowdhury IN
              wrote on last edited by
              #6

              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 use DataContract attribute for that...

              Regards, - Kunal Chowdhury (My Blog)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups