From 6fbb4a6a89992839e042776f1cc55f1f6b90bc52 Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Mon, 16 Oct 2017 16:13:45 -0400 Subject: [PATCH] Tidying --- ICD.Common.Utils/Extensions/CollectionExtensions.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ICD.Common.Utils/Extensions/CollectionExtensions.cs b/ICD.Common.Utils/Extensions/CollectionExtensions.cs index c77ded3..ec831c9 100644 --- a/ICD.Common.Utils/Extensions/CollectionExtensions.cs +++ b/ICD.Common.Utils/Extensions/CollectionExtensions.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using ICD.Common.Properties; namespace ICD.Common.Utils.Extensions { @@ -15,6 +16,7 @@ namespace ICD.Common.Utils.Extensions /// /// /// + [PublicAPI] public static void RemoveAll(this ICollection extends, IEnumerable other) { if (extends == null) @@ -23,7 +25,7 @@ namespace ICD.Common.Utils.Extensions if (other == null) throw new ArgumentNullException("other"); - extends.RemoveAll(i => other.Contains(i)); + extends.RemoveAll(other.Contains); } /// @@ -32,6 +34,7 @@ namespace ICD.Common.Utils.Extensions /// /// /// + [PublicAPI] public static void RemoveAll(this ICollection extends, Func predicate) { if (extends == null)