fix: fixed fields/properties like behaviour controllers not being explored by entity finder

This commit is contained in:
2025-04-23 14:58:25 +03:00
parent 9581f5aa54
commit 2637f99456
2 changed files with 13 additions and 20 deletions

View File

@@ -15,11 +15,6 @@ internal static class Utils
.Where(pi => pi.SetMethod is not null)
.ToList();
propertyInfos.AddRange(
GetPropertyInfosIncludingBaseClasses(objectType, BindingFlags.Instance | BindingFlags.FlattenHierarchy | BindingFlags.NonPublic)
.Where(pi => pi.SetMethod is not null && pi.GetCustomAttribute<SerializeAttribute>() is not null)
);
return new TypeData(fieldInfos, propertyInfos);
}