dynamitey
dynamitey copied to clipboard
Generic method call fails
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.
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#.