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. Generic Wrapper Object serialization

Generic Wrapper Object serialization

Scheduled Pinned Locked Moved WPF
csharpwcfsalesjsontutorial
3 Posts 2 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.
  • A Offline
    A Offline
    Adriaan Davel
    wrote on last edited by
    #1

    I think I know what the answer is going to be here, but I'm desperate... I need to use an object wrapper (quite a complex one for a complex reason) in my Silverlight 3 (not using RIA services) solution so I thought a Generic approach would be best, until I saw how Silverlight serializes my object, for example:

    public class Customer
    {
    public string Name { get; set; }
    }

    public class Wrapper<T>
    {
    //Do some stuff
    }

    If I have a method in my WCF service that returns a wrapped Customer ( public Wrapper<Customer> Get()) the proxy class generated is: a) Not a generic implementation (Wrapper<Customer> ) b) Has a very strange class name, something like WrapperOfCustomerUyenbzx Am I doing something wrong or will I have to get used to it?

    ____________________________________________________________ Be brave little warrior, be VERY brave

    M 1 Reply Last reply
    0
    • A Adriaan Davel

      I think I know what the answer is going to be here, but I'm desperate... I need to use an object wrapper (quite a complex one for a complex reason) in my Silverlight 3 (not using RIA services) solution so I thought a Generic approach would be best, until I saw how Silverlight serializes my object, for example:

      public class Customer
      {
      public string Name { get; set; }
      }

      public class Wrapper<T>
      {
      //Do some stuff
      }

      If I have a method in my WCF service that returns a wrapped Customer ( public Wrapper<Customer> Get()) the proxy class generated is: a) Not a generic implementation (Wrapper<Customer> ) b) Has a very strange class name, something like WrapperOfCustomerUyenbzx Am I doing something wrong or will I have to get used to it?

      ____________________________________________________________ Be brave little warrior, be VERY brave

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      WCF: Serialization and Generics[^]

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      A 1 Reply Last reply
      0
      • M Mark Salsbery

        WCF: Serialization and Generics[^]

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        A Offline
        A Offline
        Adriaan Davel
        wrote on last edited by
        #3

        Thanks Mark, just what i expected...

        ____________________________________________________________ Be brave little warrior, be VERY brave

        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