More code cleanup

This commit is contained in:
Stone_Red
2026-06-08 22:05:11 +02:00
parent 031b3315a5
commit 5b8936dd16
5 changed files with 3 additions and 9 deletions
+3 -3
View File
@@ -11,10 +11,10 @@ public abstract class ChangedPropertiesTracker : INotifyPropertyChanged
{
get
{
Dictionary<string, object?> changes = new();
foreach (var name in changedPropertyNames)
Dictionary<string, object?> changes = [];
foreach (string name in changedPropertyNames)
{
if (properties.TryGetValue(name, out var value))
if (properties.TryGetValue(name, out object? value))
{
changes[name] = value;
}