public string OnChoiceSelect() { string value = ""; OnChoiceSelect oo = new OnChoiceSelect(this.s, this.header); Type t = oo.GetType(); MethodInfo mi = t.GetMethod(this.reference(0)); try { object o = mi.Invoke(oo, null); value = (string)o; } catch (NullReferenceException) { } return(value); }
public string OnChoiceSelect() { string value = ""; OnChoiceSelect oo = new OnChoiceSelect(this.s, this.header); Type t = oo.GetType(); MethodInfo mi = t.GetMethod(this.reference(0)); try { object o = mi.Invoke(oo, null); value = (string)o; } catch (NullReferenceException) { } return value; }