diff --git a/csharp/Platform.Collections/ICollectionExtensions.cs b/csharp/Platform.Collections/ICollectionExtensions.cs index 0e53ed0c..ca4852a8 100644 --- a/csharp/Platform.Collections/ICollectionExtensions.cs +++ b/csharp/Platform.Collections/ICollectionExtensions.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Linq; using System.Runtime.CompilerServices; #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member @@ -27,29 +26,5 @@ public static class ICollectionExtensions [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool IsNullOrEmpty(this ICollection collection) => collection == null || collection.Count == 0; - /// - /// - /// Determines whether all equal to default. - /// - /// - /// - /// - /// The . - /// - /// - /// - /// The collection. - /// - /// - /// - /// The bool - /// - /// - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static bool AllEqualToDefault(this ICollection collection) - { - var equalityComparer = EqualityComparer.Default; - return collection.All(item => equalityComparer.Equals(item, default)); - } } }