C#编程经验
反射得到属于的值:
var type = myTechs.GetType();
tech myTech = type.GetProperty(techName).GetValue(myTechs) as tech;
属于名:techName
反射得到属于的值:
var type = myTechs.GetType();
tech myTech = type.GetProperty(techName).GetValue(myTechs) as tech;
属于名:techName