diff --git a/ICD.Common.Utils/Attributes/Rpc/RpcAttribute.cs b/ICD.Common.Utils/Attributes/Rpc/RpcAttribute.cs index e7f0bab..aac1c1a 100644 --- a/ICD.Common.Utils/Attributes/Rpc/RpcAttribute.cs +++ b/ICD.Common.Utils/Attributes/Rpc/RpcAttribute.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; using System.Linq; +using ICD.Common.Attributes; using ICD.Common.Properties; -using ICD.Common.Utils; using ICD.Common.Utils.Collections; using ICD.Common.Utils.Extensions; #if SIMPLSHARP @@ -11,7 +11,7 @@ using Crestron.SimplSharp.Reflection; using System.Reflection; #endif -namespace ICD.Common.Attributes.Rpc +namespace ICD.Common.Utils.Attributes.Rpc { /// /// Represents a method that can be called by the server via RPC. 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)