From b41a236716f96cda15490bc772445b5d0e2c54fc Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Fri, 4 May 2018 15:08:13 -0400 Subject: [PATCH] refactor: Resolving warning --- ICD.Common.Utils/Collections/WeakKeyDictionary.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ICD.Common.Utils/Collections/WeakKeyDictionary.cs b/ICD.Common.Utils/Collections/WeakKeyDictionary.cs index d8fc681..402718c 100644 --- a/ICD.Common.Utils/Collections/WeakKeyDictionary.cs +++ b/ICD.Common.Utils/Collections/WeakKeyDictionary.cs @@ -135,6 +135,7 @@ namespace ICD.Common.Utils.Collections } set { +// ReSharper disable once CompareNonConstrainedGenericWithNull if (key == null) throw new ArgumentNullException("key"); @@ -172,6 +173,7 @@ namespace ICD.Common.Utils.Collections public void Add(TKey key, TValue value) { +// ReSharper disable once CompareNonConstrainedGenericWithNull if (key == null) throw new ArgumentNullException("key");