I have structure like this:
public interface A
{
public void method();
}
public class B : A
{
}
public class C : A
{
}
List<A> list;
List contains objects of type B and C they also have some fields that I would like to keep, can I now serialize it, deserialize back and get the proper object instances? Preferably to XML
EDIT:
Is there any simple way to serialize this list that contains interfaces, and then deserialize it back to B and C instances?