![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | DataContractSerializer and objects with interface members Hi, I have a class with interface members (similar to the code below): [DataContract] public class MyClass : IMyClass { [DataMember] protected IMySubClass[] myAvailableSubClasses; [DataMember] protected IMySubClass myCurrentlySelectedSubclass; ... ... ... } Now the DataContractSerializer is able to serialize the object but not to deserialize it. I guess it doesn't know how to instantiate a interface. Is there a work-around? I need to use the interfaces because I have different implementations of the sub class objects. Kind Regards Fabian |
My System Specs![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Expose a .NET interface to COM as an interface | pierre.k | .NET General | 3 | 06-19-2008 06:45 AM |