InvokeDoIt() public method

public InvokeDoIt ( object target, object args ) : object
target object
args object
return object
Exemplo n.º 1
0
        public void DoItCaller(int count, ref int reference, out string output)
        {
            InstanceMethod caller = new InstanceMethod();

            RefOutTestObject target = new RefOutTestObject();

            object[] args = new object[] { count, reference, null };
            caller.InvokeDoIt(target, args);

            reference = (int)args[1];
            output    = (string)args[2];
        }
Exemplo n.º 2
0
        public void DoItCaller(int count, ref int reference, out string output)
        {
            InstanceMethod caller = new InstanceMethod();

            RefOutTestObject target = new RefOutTestObject();
            object[] args = new object[] { count, reference, null };
            caller.InvokeDoIt(target, args);

            reference = (int)args[1];
            output = (string)args[2];
        }