Skip to content

Commit

Permalink
Fix #522
Browse files Browse the repository at this point in the history
  • Loading branch information
mganss committed Jun 28, 2024
1 parent 42e6e0d commit 8d8f5ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XmlSchemaClassGenerator/TypeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public override CodeTypeDeclaration Generate()

var param = new CodeParameterDeclarationExpression(typeof(string), "propertyName = null");
param.CustomAttributes.Add(new(TypeRef<System.Runtime.CompilerServices.CallerMemberNameAttribute>()));
var threadSafeDelegateInvokeExpression = new CodeSnippetExpression($"{propertyChangedEvent.Name}?.Invoke(this, new System.ComponentModel.PropertyChangedEventArgs({param.Name}))");
var threadSafeDelegateInvokeExpression = new CodeSnippetExpression($"{propertyChangedEvent.Name}?.Invoke(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName))");
var onPropChangedMethod = new CodeMemberMethod
{
Name = OnPropertyChanged,
Expand Down

0 comments on commit 8d8f5ff

Please sign in to comment.