我需要从我的班级收到的对象创建一个列表。但我做不到?
[XmlTypeAttribute(AnonymousType = true)]
public class PackIt
{
[XmlElement("pack")]
public List<object> objects { get; set; }
public PackIt(object model)
{
objects = new List<model.GetType()>();
}
}