From ddd9406162ac8c7b032738eb28d2fc4b1f3f6bc6 Mon Sep 17 00:00:00 2001 From: soul liu Date: Thu, 11 May 2023 16:05:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- General/utils/CollectionsUtils.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/General/utils/CollectionsUtils.cs b/General/utils/CollectionsUtils.cs index d516e24..c43d062 100644 --- a/General/utils/CollectionsUtils.cs +++ b/General/utils/CollectionsUtils.cs @@ -7,12 +7,20 @@ using System.Threading.Tasks; namespace Soul2.General.utils { public class CollectionsUtils { - + /// + /// 判断非空 + /// + /// 集合对象 + /// 是否非空 public static bool isNotEmpty(IEnumerable collection) { return !isEmpty(collection); } - + /// + /// 判断为空 + /// + /// 集合对象 + /// 是否为空 public static bool isEmpty(IEnumerable collection) { if (collection == null) { return true;