This commit is contained in:
CortexCore
2024-03-31 23:31:00 +08:00
parent e179d2eb53
commit b7b89ee71a
641 changed files with 31286 additions and 22134 deletions

View File

@@ -94,7 +94,7 @@ namespace BITKit
}
public static bool IsValid<T>(this IEnumerable<T> e)
{
return e is not null && e.Count() > 0;
return e is not null && e.Any();
}
public static bool TryAdd<T>(this IList<T> self, T t)
{