Folks, the following skeleton code dies on the Invoke with a
TargetParameterCountException. The code is all in the same class.

 

    MethodInfo mi = this.GetType().GetMethod("TestMethod",
BindingFlags.Instance|BindingFlags.NonPublic);

    object[] objs = new object[] { "Hi", 123, DateTime.Now };

    mi.Invoke(this, objs);

 

protected void TestMethod(object[] args)

{

}

 

I'm stumped, so I'm going to feed the magpies and when I come back I'll
either have the answer or some other genius will tell me ;-)

 

Greg

Reply via email to