Skip to content

Commit

Permalink
Fixed the bug of searching method by name in ProxyType class.
Browse files Browse the repository at this point in the history
谢谢 @Chuangludeng 上报并修改了这个bug.
  • Loading branch information
Clark committed Feb 3, 2023
1 parent 298589e commit ddf5654
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ protected bool IsParameterMatch(IProxyMethodInfo proxyMethodInfo, Type[] paramet
if ((parameters == null || parameters.Length == 0) && (parameterTypes == null || parameterTypes.Length == 0))
return true;

if (parameters != null && parameterTypes != null && parameters.Length == parameters.Length)
if (parameters != null && parameterTypes != null && parameters.Length == parameterTypes.Length)
{
for (int i = 0; i < parameters.Length; i++)
{
if (!parameters[i].Equals(parameterTypes[i]))
if (parameters[i].ParameterType != parameterTypes[i])
return false;
}
return true;
Expand Down

0 comments on commit ddf5654

Please sign in to comment.