Skip to content

Commit b2dc373

Browse files
committed
Revert setter accessibility changes
1 parent fd700dc commit b2dc373

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CommunityToolkit.Maui.SourceGenerators.Internal/Generators/BindablePropertyAttributeSourceGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ static void GenerateProperty(StringBuilder sb, in BindablePropertyModel info)
349349
{
350350
sb.Append(info.SetterAccessibility)
351351
.Append("set => SetValue(")
352-
.Append(info.IsReadOnlyBindableProperty ? info.BindablePropertyKeyName : info.BindablePropertyName);
352+
.Append(info.IsReadOnlyBindableProperty ? info.BindablePropertyKeyName : info.BindablePropertyName)
353+
.Append(", value);\n");
353354

354355
if (info.HasInitializer)
355356
{

0 commit comments

Comments
 (0)