diff --git a/ICD.Common.Utils/Collections/IcdHashSet.cs b/ICD.Common.Utils/Collections/IcdHashSet.cs index 8561c70..a4a8b90 100644 --- a/ICD.Common.Utils/Collections/IcdHashSet.cs +++ b/ICD.Common.Utils/Collections/IcdHashSet.cs @@ -154,6 +154,14 @@ namespace ICD.Common.Utils.Collections return (IsSupersetOf(setToCompare) && !setToCompare.IsSupersetOf(this)); } + [PublicAPI] + public bool SetEquals(IcdHashSet set) + { + var setToCompare = set ?? NullSet; + + return (IsSubsetOf(setToCompare) && setToCompare.IsSubsetOf(this)); + } + #endregion #region ICollection Members @@ -165,9 +173,9 @@ namespace ICD.Common.Utils.Collections /// public bool Add(T item) { -// ReSharper disable CompareNonConstrainedGenericWithNull + // ReSharper disable CompareNonConstrainedGenericWithNull if (item == null) -// ReSharper restore CompareNonConstrainedGenericWithNull + // ReSharper restore CompareNonConstrainedGenericWithNull throw new ArgumentNullException("item"); if (m_Dict.ContainsKey(item))