You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/SourceGeneration.Reflection/SourceMethodInfo.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ public Type ReturnType
25
25
26
26
publicFunc<object?,object?[]?,object?>Invoke
27
27
{
28
-
get=>_invoke??MethodInfo.Invoke;
28
+
get=>_invoke??(MethodInfo.IsGenericMethodDefinition?thrownewInvalidOperationException("This method has a generic parameter. Please use MethodInfo.Invoke instead."):MethodInfo.Invoke);
0 commit comments