Skip to content

Commit

Permalink
fixed ambiguity (no more Array.IsEmpty/IsEmptyOrNull)
Browse files Browse the repository at this point in the history
  • Loading branch information
luithefirst committed Oct 2, 2024
1 parent 6a060bc commit f58a772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Aardvark.Base/Extensions/IEnumerableExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ public static bool AllEqual<T>(this IEnumerable<T> elements)
/// <summary>
/// Returns true if elements contains no items or if elements is null, false otherwise.
/// </summary>
public static bool IsEmptyOrNull(this Array self) => self == null || self.Length == 0;
public static bool IsEmptyOrNull<T>(this T[] self) => self == null || self.Length == 0;

/// <summary>
/// Returns true if elements contains no items or if elements is null, false otherwise.
Expand Down Expand Up @@ -2269,7 +2269,7 @@ public static IEnumerable<T> Return<T>(this T item)
/// <summary>
/// Determines whether an array contains no elements.
/// </summary>
public static bool IsEmpty(this Array self) => self.Length == 0;
public static bool IsEmpty<T>(this T[] self) => self.Length == 0;

/// <summary>
/// Determines whether a sequence contains no elements.
Expand Down

0 comments on commit f58a772

Please sign in to comment.