# WLToolsLib **Repository Path**: raddleoj/WLToolsLib ## Basic Information - **Project Name**: WLToolsLib - **Description**: c#扩展工具集合,git那个也是我的! - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2018-05-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # WLToolsLib utility c# tools simple and easy use expand func 简单易用的扩展方法集合 like this if(string.IsNullOrWhiteSpace(string)){ ... } // expand func public static bool NullEmpty(this string self) => string.IsNullOrWhiteSpace(self); public static bool NotNullEmpty(this string self) => !self.NullEmpty(); // use easy if(str.NullEmpty()) {...} if(str.NotNullEmpty()) {...} other like obj.IsNull() = ReferenceEquals(self, null); obj.NotNull() = !obj.IsNull() IList.HasItem() = self.NotNull() && self.Any() IList AddRange(this IList self, IList itemList) int SortMulti(T x, T y, Func[] l, int i) //这是个多条件排序扩展|this is a multiple-conditions sort extension method void Foreach(this IList self, Action action)//循环一个动作 | foreach with action void RemoveOrHold(this IList self, bool isRemove, Func predicate) // 移除或保留 | bool RegexIsMatch(this string pattern, string content) // 正则匹配扩展 IEnumerable> ForeachIndex(IEnumerable source) // 循环返回index和数据 | foreach with index and data,like js. string AESCBCEncryption(this string self, string key) string AESCBCDecryption(this string self, string key) .....