pose icon indicating copy to clipboard operation
pose copied to clipboard

Shim for an open generic?

Open mcintyre321 opened this issue 6 years ago • 0 comments

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?

mcintyre321 avatar Feb 27 '19 14:02 mcintyre321