Generic Wrapper Object serialization
-
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
-
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
WCF: Serialization and Generics[^]
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
WCF: Serialization and Generics[^]
Mark Salsbery Microsoft MVP - Visual C++ :java:
Thanks Mark, just what i expected...
____________________________________________________________ Be brave little warrior, be VERY brave