In .NET, Is there a way to check whether an object is of a delegate type?
I need this because I\'m logging the parameters of method calls, and I want to print
Sure, same as with any other type:
if (foo is Delegate)
Or for a type:
if (typeof(Delegate).IsAssignableFrom(t))