T
Tee
Hi,
Can anyone tell me if it's possible to pass a method to another class?
Example of what I would like to do:
class1:
public void MyMethod()
{
code here
}
class2:
public void CallThisMethod(something MethodName)
{
MethodName();
}
Then I will call this code from class1:
class2.CallThisMethod(MyMethod)
So is this possible in .NET? if yes, can anyone give me a proper example?
Thanks alot,
Tee
Can anyone tell me if it's possible to pass a method to another class?
Example of what I would like to do:
class1:
public void MyMethod()
{
code here
}
class2:
public void CallThisMethod(something MethodName)
{
MethodName();
}
Then I will call this code from class1:
class2.CallThisMethod(MyMethod)
So is this possible in .NET? if yes, can anyone give me a proper example?
Thanks alot,
Tee