From f58a77233a19e3ddc71d7b2b3df43836c963edad Mon Sep 17 00:00:00 2001 From: Christian Luksch Date: Wed, 2 Oct 2024 17:31:50 +0200 Subject: [PATCH] fixed ambiguity (no more Array.IsEmpty/IsEmptyOrNull) --- src/Aardvark.Base/Extensions/IEnumerableExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Aardvark.Base/Extensions/IEnumerableExtensions.cs b/src/Aardvark.Base/Extensions/IEnumerableExtensions.cs index e1a61a84..4edeb443 100644 --- a/src/Aardvark.Base/Extensions/IEnumerableExtensions.cs +++ b/src/Aardvark.Base/Extensions/IEnumerableExtensions.cs @@ -878,7 +878,7 @@ public static bool AllEqual(this IEnumerable elements) /// /// Returns true if elements contains no items or if elements is null, false otherwise. /// - public static bool IsEmptyOrNull(this Array self) => self == null || self.Length == 0; + public static bool IsEmptyOrNull(this T[] self) => self == null || self.Length == 0; /// /// Returns true if elements contains no items or if elements is null, false otherwise. @@ -2269,7 +2269,7 @@ public static IEnumerable Return(this T item) /// /// Determines whether an array contains no elements. /// - public static bool IsEmpty(this Array self) => self.Length == 0; + public static bool IsEmpty(this T[] self) => self.Length == 0; /// /// Determines whether a sequence contains no elements.