Skip to content

Commit

Permalink
Merge pull request Ourpalm#294 from jiogao/master
Browse files Browse the repository at this point in the history
Update Extensions.cs
  • Loading branch information
liiir1985 authored Oct 22, 2019
2 parents 9cae9ff + b6127a2 commit 972f007
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ILRuntime/Runtime/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ public static bool MatchGenericParameters(this System.Reflection.MethodInfo m, T
if (param.Length == parameters.Length)
{
var args = m.GetGenericArguments();
if (args.Length != genericArguments.Length)
{
return false;
}
if (args.MatchGenericParameters(m.ReturnType, returnType, genericArguments))
{
for (int i = 0; i < param.Length; i++)
Expand Down

0 comments on commit 972f007

Please sign in to comment.