Skip to content

Commit

Permalink
修复包含 new 声明的 Property 的类生成绑定代码过程报错
Browse files Browse the repository at this point in the history
  • Loading branch information
m1stm4o authored and liiir1985 committed Jan 29, 2024
1 parent 00e5ed7 commit 82573dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ILRuntime/Runtime/CLRBinding/BindingGeneratorExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ internal static bool ShouldSkipMethod(this Type type, MethodBase i)
}
else
ts = new Type[0];
var prop = type.GetProperty(t[1], ts);
var prop = type.GetProperties().FirstOrDefault(p => p.Name == t[1] && p.GetIndexParameters().Select(pp => pp.ParameterType).SequenceEqual(ts));
if (prop == null)
{
return true;
Expand Down

0 comments on commit 82573dd

Please sign in to comment.