|
@@ -256,8 +256,13 @@ namespace InABox.Core
|
|
|
{
|
|
|
properties = ImmutableDictionary<string, IProperty>.Empty;
|
|
|
}
|
|
|
- _properties[master] = properties.AddRange(
|
|
|
- toAdd.Select(x => new KeyValuePair<string, IProperty>(x.Name, x)));
|
|
|
+ var newDict = properties.ToDictionary(x => x.Key, x => x.Value);
|
|
|
+ foreach(var prop in toAdd)
|
|
|
+ {
|
|
|
+ newDict[prop.Name] = prop;
|
|
|
+ }
|
|
|
+
|
|
|
+ _properties[master] = newDict.ToImmutableDictionary();
|
|
|
}
|
|
|
|
|
|
public static void RegisterProperty(IProperty entry)
|