[Introspection] Fix intro skip when the properties are internal. (#18613)
This commit is contained in:
Родитель
bfb8665d19
Коммит
e4ed7e18bf
|
@ -170,8 +170,8 @@ namespace Introspection {
|
|||
|
||||
// FIXME: In the future we could cache this to reduce memory requirements
|
||||
var property = m.DeclaringType
|
||||
.GetProperties ()
|
||||
.SingleOrDefault (p => p.GetGetMethod () == m || p.GetSetMethod () == m);
|
||||
.GetProperties (BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic)
|
||||
.SingleOrDefault (p => p.GetGetMethod (true) == m || p.GetSetMethod (true) == m);
|
||||
return property is not null && SkipDueToAttribute (property);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче