![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | 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 | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Remove members of the group. Members are from different domains | PowerShell | |||