We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d1a525 commit a47ce3bCopy full SHA for a47ce3b
CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservablePropertyGenerator.Execute.cs
@@ -978,7 +978,7 @@ private static FieldDeclarationSyntax CreateFieldDeclaration(string typeName, st
978
.AddVariables(
979
VariableDeclarator(Identifier(propertyName))
980
.WithInitializer(EqualsValueClause(
981
- ImplicitObjectCreationExpression()
+ ObjectCreationExpression(IdentifierName(typeName))
982
.AddArgumentListArguments(Argument(
983
LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(propertyName))))))))
984
.AddModifiers(
0 commit comments