清理包,移动扩展方法
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-02 18:00:34 +08:00
parent 1e0af11110
commit e8db8a892c
6 changed files with 29 additions and 17 deletions
@@ -0,0 +1,26 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IRaCIS.Core.Infrastructure.Extention
{
public static class StringExtension
{
// 扩展 string 类型
public static bool IsNullOrEmpty(this string value)
{
return string.IsNullOrEmpty(value);
}
// 扩展 IEnumerable<T> 类型
public static bool IsNullOrEmpty<T>(this IEnumerable<T> enumerable)
{
return enumerable == null || !enumerable.Any();
}
}
}