Merge branch 'setequals' of Common/Utils into dev

This commit is contained in:
Chris Cameron
2018-05-22 21:43:12 +00:00
committed by Gogs

View File

@@ -154,6 +154,14 @@ namespace ICD.Common.Utils.Collections
return (IsSupersetOf(setToCompare) && !setToCompare.IsSupersetOf(this)); return (IsSupersetOf(setToCompare) && !setToCompare.IsSupersetOf(this));
} }
[PublicAPI]
public bool SetEquals(IcdHashSet<T> set)
{
var setToCompare = set ?? NullSet;
return (IsSubsetOf(setToCompare) && setToCompare.IsSubsetOf(this));
}
#endregion #endregion
#region ICollection<T> Members #region ICollection<T> Members