SiHan.Libs.Utils
1.1.0
See the version list below for details.
dotnet add package SiHan.Libs.Utils --version 1.1.0
NuGet\Install-Package SiHan.Libs.Utils -Version 1.1.0
<PackageReference Include="SiHan.Libs.Utils" Version="1.1.0" />
paket add SiHan.Libs.Utils --version 1.1.0
#r "nuget: SiHan.Libs.Utils, 1.1.0"
// Install SiHan.Libs.Utils as a Cake Addin #addin nuget:?package=SiHan.Libs.Utils&version=1.1.0 // Install SiHan.Libs.Utils as a Cake Tool #tool nuget:?package=SiHan.Libs.Utils&version=1.1.0
SiHan.Libs.Utils
介绍
该库提供C#常用工具类,基于netstandard2.0,可以在ASP.NET Core和winform中使用。
安装
PM> Install-Package SiHan.Libs.Utils
工具集
文件工具
FileHelper:使用UTF-8编码来从文件中读取文本内容、或写入文本内容。
加密工具
ITextEncryptor:文本加密接口
AesEncryptor:AES加密器。
Md5Encryptor:MD5加盐
字符串工具
Base64Helper:使用UTF-8实现BASE64的编码与解码
FormatHelper:提供日期、布尔值、数字的文字格式化
GuidHelper:生成带序列的GUID值
SNGenerator:序列号生成器
SortHelper:排序字符串的处理类
StringMatchHelper:常用正则表达式匹配检测
日期工具
DateTimeHelper:获取日期范围等功能的帮助类
站点地图
Sitemap sitemap = new Sitemap();
sitemap.Add(new SitemapNode {Url = "http://www.google.com"});
sitemap.Add(new SitemapNode {Url = "http://www.bing.com"});
string xml = sitemap.GetSitemapDocument();
分页工具
Pager:分页核心类,通过行总数、分页尺寸生成页码等信息。
PagingModel:分页模型类,为ASP.NET Core视图模型提供分页基类。
PagingResult:分页结果,为业务层提供保存分页数据的基类。
扩展类
为Regex提供扩展方法GetMatchString(),用于获取匹配文本。
1.1.0 版本更新
RandomHelper:随机帮助类:生成随机数字和字符串。
SerializeHelper:序列化帮助类:序列化对象为XML、Byte[]、JSON。
StringHelper:字符串帮助类:拼接、合并、转换字符串。
ReflectionHelper:反射帮助类。
EnumHelper:枚举帮助类。
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- HtmlAgilityPack (>= 1.11.16)
- Newtonsoft.Json (>= 12.0.2)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on SiHan.Libs.Utils:
Package | Downloads |
---|---|
SiHan.Asp.Common
ASP.NET Core 工具类 |
|
SiHan.Libs.TempPhone
c# 获取各网站的临时手机号 |
|
SiHan.Asp.Ip
ASP.NET Core IP查询库 |
GitHub repositories
This package is not used by any popular GitHub repositories.