pose
pose copied to clipboard
Shim for an open generic?
I would like to Shim calls to an open generic method on a static class, with a signature like:
public static void Throws<T>(Func<T> func)
I can't figure out how to do it (without explicitly specifying the T type, which I don't want to do as this is going to be hidden in library code). Is there a way to shim it?