I do not know that what I'm going to say is what you want, but:
You cannot deserialize it as an object type
object[] EQs; XmlSerializer serializer = new XmlSerializer(typeof(object[])); EQs = (object[])(serializer.Deserialize(reader));
If the type of an object is determined at compile time (as you say), shouldn't there be some code that defines it? and in this code snippet do you just convert the object to the type you need?
Another way to convert once you have object[] EQs is this:
if(EQs.Lenght > 0) { Type t = EQs[0].GetType(); }
and now use the resulting Type to convert your object[] EQs to the right Type
Vincent
source share