diff --git a/src/BlazorBindings.Maui.ComponentGenerator/GeneratedPropertyInfo.cs b/src/BlazorBindings.Maui.ComponentGenerator/GeneratedPropertyInfo.cs index 7216551a..6cc090b9 100644 --- a/src/BlazorBindings.Maui.ComponentGenerator/GeneratedPropertyInfo.cs +++ b/src/BlazorBindings.Maui.ComponentGenerator/GeneratedPropertyInfo.cs @@ -307,6 +307,8 @@ private static IEnumerable GetMembers(ITypeSymbol typeSymbol, IEnumerable< .Select(member => typeSymbol.GetMember(member, true)) .Where(member => member != null); - return typeSymbol.GetMembers().Union(baseMembers, SymbolEqualityComparer.Default).OfType(); + return typeSymbol.GetMembers().Union(baseMembers, SymbolEqualityComparer.Default) + .Where(m => !m.IsStatic && m.DeclaredAccessibility == Accessibility.Public) + .OfType(); } }