I'm de/serializing an object like so:
public class myClass : ISerializable
{
public List<OType> value;
public myClass(SerializationInfo info, StreamingContext context)
{
this.value = (List<OType>)info.GetValue("value", typeof(List<OType>));
}
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
info.AddValue("value", value, typeof(List<OType>));
}
}
The object that is in the list does have the Serializable attribute. When serializing, no errors are thrown and the list is never empty, but when deserializing all of my lists are null and I'm not sure why.
I'm marking this as answered by CQ. I was able to produce a small one off test app that does properly serialize/deserialize with the objects I'm trying to use but I still can't seem to get it to work in my production code but I suspect it's something small that I'm missing.