修改存在的一些错误

This commit is contained in:
2025-08-31 01:34:59 +08:00
parent cffe77a4cd
commit e432177af8
2 changed files with 4 additions and 2 deletions

View File

@@ -1273,7 +1273,7 @@ namespace Convention
}
return result;
}
public static List<MemberInfo> SeekMemberInfo([In] object target, IEnumerable<string> names, BindingFlags flags = BindingFlags.Default)
public static List<MemberInfo> SeekMemberInfo([In] object target, IEnumerable<string> names, BindingFlags flags = BindingFlags.Public | BindingFlags.Instance)
{
Type _CurType = target.GetType();
List<MemberInfo> result = _CurType.GetMembers(flags).ToList();