这是我的XML:
<slot01>Blaster</slot01>
如何解析此问题,以便将Blaster(作为类名称,而不是字符串)添加到列表中,例如:
List<IWeapon> weapon = new List<IWeapon>();
weapon.Add(new Blaster());
注意:我的其他变量使用:
设置case "name": setName.Add(childList[k].InnerText.ToString()); break;
我错过了演员?我正在努力做甚么可能吗?