mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-17 05:35:07 +00:00
Dictionary update extensions support kvps
This commit is contained in:
@@ -193,7 +193,8 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
/// <param name="other"></param>
|
/// <param name="other"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
public static bool Update<TKey, TValue>(this IDictionary<TKey, TValue> extends, IDictionary<TKey, TValue> other)
|
public static bool Update<TKey, TValue>(this IDictionary<TKey, TValue> extends,
|
||||||
|
IEnumerable<KeyValuePair<TKey, TValue>> other)
|
||||||
{
|
{
|
||||||
if (extends == null)
|
if (extends == null)
|
||||||
throw new ArgumentNullException("extends");
|
throw new ArgumentNullException("extends");
|
||||||
@@ -214,7 +215,8 @@ namespace ICD.Common.Utils.Extensions
|
|||||||
/// <param name="comparer"></param>
|
/// <param name="comparer"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
public static bool Update<TKey, TValue>(this IDictionary<TKey, TValue> extends, IDictionary<TKey, TValue> other,
|
public static bool Update<TKey, TValue>(this IDictionary<TKey, TValue> extends,
|
||||||
|
IEnumerable<KeyValuePair<TKey, TValue>> other,
|
||||||
IEqualityComparer<TValue> comparer)
|
IEqualityComparer<TValue> comparer)
|
||||||
{
|
{
|
||||||
if (extends == null)
|
if (extends == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user