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;