I would like to check in runtime that a variable of type Func<...> is a specific class method. E.g.
class Foo
{
public static int MyMethod(int a, int b)
{
//...
}
}
Func<int, int, int> myFunc;
myFunc = Foo.MyMethod;
if(myFunc is Foo.MyMethod)
{
//do something
}
You should be able to compare the two directly using
==
: