我在以下方面取得了成功:
[XmlArray("HasTypeSpecialisations")] [XmlArrayItem("TypeObject", typeof(TypeObject), IsNullable = false)] public ListTypeSpecialisations
这导致:
在你的情况下,我会尝试这样的事情:
[XmlArrayItem(typeof(DataPoints))] public ArrayList PolledData
基于此链接http://msdn.microsoft.com/en-us/library/2baksw0z(VS.85).aspx你也应该能够使用这个
[XmlElement(Type = typeof(DataPoints))] public ArrayList PolledData