diff --git a/Collections/DictionaryExtensions.cs b/Collections/DictionaryExtensions.cs index f848b45..aae8985 100644 --- a/Collections/DictionaryExtensions.cs +++ b/Collections/DictionaryExtensions.cs @@ -5,7 +5,7 @@ namespace NEG.Utils.Collections public static class DictionaryExtensions { /// - /// Adds an element to a dictionary if there was none assigned to specified , otherwise replaces the existing + /// Adds given value to a dictionary if there was no element at given , replaces element with otherwise. /// /// true if element was added, false if it was replaced public static bool AddOrUpdate(this Dictionary dict, K key, V value) @@ -24,9 +24,9 @@ namespace NEG.Utils.Collections /// - /// Gets a value from the dictionary under a specified key or sets it if there was no assoiation then return the associated value + /// Gets a value from the dictionary under a specified key or adds it if did not exist and returns . /// - /// + /// value under a given if it exists, otherwise public static V GetOrSetToDefault(this Dictionary dict, K key, V defaultValue) { if (dict.TryGetValue(key, out V value))