trytry
{
myMethod.Invoke(oService, arg);
ds = (DataSet)arg[0];//加上这个
}
catch(Exception e)
{
MessageBox.Show(e.Message);
}
{
myMethod.Invoke(oService, arg);
ds = (DataSet)arg[0];//加上这个
}
catch(Exception e)
{
MessageBox.Show(e.Message);
}
MethodInfo mif = t.GetMethod("xx");
object obj = System.Activator.CreateInstance(t);
string s = "";
object[] args = new object[1]{s};
mif.Invoke(obj,args);
MessageBox.Show(args[0].ToString());
public class SB
{
public void xx(ref string s)
{
s = "返回!";
}
}