问个反射的问题public class Abc{public string UserNamepublic void a(){this.UserName What the
问个反射的问题
public class Abc{ public string UserName=""; public void a(){ this.UserName = "What the fucking chinese english!"; } public void Set(){ foreach(var item in typeof(Abc).GetMethods()){ if(item.Name == "a"){ item.Invoke(this,null); } } } }