From 7565296c9f6a9f43ab43a99daf3fa4cf93b4943a Mon Sep 17 00:00:00 2001 From: Yami An Date: Mon, 4 Dec 2023 01:39:03 +0700 Subject: [PATCH] v3.2.3 --- lib/YANLib/YANEnumerable.cs | 8 ++++---- lib/YANLib/YANLib.csproj | 7 ++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/YANLib/YANEnumerable.cs b/lib/YANLib/YANEnumerable.cs index 2480b558..8d398cd4 100644 --- a/lib/YANLib/YANEnumerable.cs +++ b/lib/YANLib/YANEnumerable.cs @@ -69,13 +69,13 @@ public static IEnumerable Clean(this IEnumerable srcs) } } - public static bool IsEmptyOrNull([NotNullWhen(false)] this IEnumerable srcs) => srcs is null || !srcs.Any(); + public static bool IsEmptyOrNull([NotNullWhen(false)] this IEnumerable? srcs) => srcs is null || !srcs.Any(); - public static bool IsEmptyOrNull([NotNullWhen(false)] this ICollection srcs) => srcs is null || srcs.Count < 1; + public static bool IsEmptyOrNull([NotNullWhen(false)] this ICollection? srcs) => srcs is null || srcs.Count < 1; - public static bool IsNotEmptyAndNull([NotNullWhen(true)] this IEnumerable srcs) => srcs is not null && srcs.Any(); + public static bool IsNotEmptyAndNull([NotNullWhen(true)] this IEnumerable? srcs) => srcs is not null && srcs.Any(); - public static bool IsNotEmptyAndNull([NotNullWhen(true)] this ICollection srcs) => srcs is not null && srcs.Count > 0; + public static bool IsNotEmptyAndNull([NotNullWhen(true)] this ICollection? srcs) => srcs is not null && srcs.Count > 0; public static bool AllEmptyOrNull(this IEnumerable srcs) where T : class => !srcs.Any(x => x is not null || x.AnyPropertiesNotDefault()); diff --git a/lib/YANLib/YANLib.csproj b/lib/YANLib/YANLib.csproj index fa643049..8fbf497a 100644 --- a/lib/YANLib/YANLib.csproj +++ b/lib/YANLib/YANLib.csproj @@ -18,14 +18,11 @@ False README.md git - Update -- Text -- Char -- String + Hotfix Enumerable MIT False Tynab.YANLib - 3.2.2 + 3.2.3 preview