dynamitey icon indicating copy to clipboard operation
dynamitey copied to clipboard

Generic method call fails

Open jjxtra opened this issue 3 years ago • 1 comments

I tried running the invocation of a generic typed method of a class and got an exception. Switching to use raw .NET reflection with MakeGenericMethod I was able to make the call.

I didn't see a test for this, so I may make a fork and submit a pr with a failing test.

jjxtra avatar Dec 17 '20 17:12 jjxtra

Here is one https://github.com/ekonbenefits/dynamitey/blob/4297520477c68e8777b18ff63ce11b1ac3f00d43/Tests/Invoke.cs#L300-L305

As I recall it will work without describing the generic arg, if it can can determine based on argument type, just like in C#.

jbtule avatar Dec 17 '20 19:12 jbtule