This commit is contained in:
Stephan
2019-04-23 12:09:13 +02:00
parent 50f6779c17
commit 0cf857e8bc
2 changed files with 9 additions and 24 deletions

View File

@@ -15,13 +15,8 @@ namespace Umbraco.Core
var hs = new HashSet<T>();
foreach (var item in items)
{
if (item != null || includeNull)
{
if (!hs.Add(item))
{
return true;
}
}
if ((item != null || includeNull) && !hs.Add(item))
return true;
}
return false;
}
@@ -117,7 +112,7 @@ namespace Umbraco.Core
}
}
/// <summary>
/// Returns true if all items in the other collection exist in this collection
/// </summary>