Update GenericOrderedDictionary.cs

This commit is contained in:
subhra74 2022-01-12 12:57:27 +05:30
parent af2bd4ce6f
commit 81f80352c1

View File

@ -19,7 +19,10 @@ namespace XDM.Core.Lib.Common.Collections
{
lock (this)
{
keys.Add(key);
if (!dict.ContainsKey(key))
{
keys.Add(key);
}
dict[key] = value;
}
}
@ -46,7 +49,10 @@ namespace XDM.Core.Lib.Common.Collections
{
lock (this)
{
keys.Add(key);
if (!dict.ContainsKey(key))
{
keys.Add(key);
}
dict[key] = value;
}
}