Serialization of Classes that extend List not supported

Sep 17, 2009 at 11:43 PM

I was looking to use/contribute to this project. I noticed that support for complex classes that dervice from IList are not really supported.

For example

class A
{
public string Foo get; set;}
}

class B : ObservableCollection<A>
{

}

When the serializer attemptes to serialize a type of B it hits the following code

 Stream.Write((
{
SerializeElement(enumerator.Current, objectType);
}

IEnumerator enumerator = ilist.GetEnumerator();int)ilist.Count);while (enumerator.MoveNext())

Notice that the type passed to SerializeElement is objectType which is actually still set to B not A. Serialization subsequently fails. Is this supposed to be a supported sceanrio. I would love to get this working.

Thanks
Eli

 

Developer
Mar 24, 2010 at 1:45 AM

I am the QA for this project.  Let me see if I can get ahold of the developer.