0
我需要從我的課程收到的對象中創建一個列表。但我做不到?從收到的對象創建列表?
[XmlTypeAttribute(AnonymousType = true)]
public class PackIt
{
[XmlElement("pack")]
public List<object> objects { get; set; }
public PackIt(object model)
{
objects = new List<model.GetType()>();
}
}