mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
feat: Validation
This commit is contained in:
@@ -228,7 +228,7 @@ namespace ICD.Common.Utils.Collections
|
|||||||
public bool SetEquals(IcdHashSet<T> set)
|
public bool SetEquals(IcdHashSet<T> set)
|
||||||
{
|
{
|
||||||
if (set == null)
|
if (set == null)
|
||||||
return Count == 0;
|
throw new ArgumentNullException("set");
|
||||||
|
|
||||||
return Count == set.Count && set.All(Contains);
|
return Count == set.Count && set.All(Contains);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user