I was wondering if it was possible to dynamically inject a function parameter at runtime. For e.g. I have a class with two overloaded methods say
Class C1
{
public static void Func1(object o)
{
}
public static void Func1()
{
}
}
Class C2
{
public void Func1()
{
C1.Func1();
}
}
Now, is it possible to dynamically replace the call to Func1() with a call to the overloaded method C1.Func1(object o) passing in either 'this' or the type object as the parameter.
So, in affect when I call C1.Func1(), my code should call C1.Func1(this);