|
|
От: | alxrie | |
| Дата: | 27.02.13 00:57 | ||
| Оценка: | |||
public class Test()
{ public Test() { }
public void Proc(ref int i, ref int j)
{ i++; j++; }
}int k=0;
object[] args = new object[] { k, k };
typeof(Test).GetMethod("Proc").Invoke(new Test(), args);
k = (int)(args[0]);