3 Star 8 Fork 7

softwaiter / Xmtool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

一个简单易用的.NetCore工具类库(持续集成中...)

:beginner: 简介

Xmtool是一个基于.NetCore的常用功能集成工具类库,目的是做成一个像Java语言中的Hutool类似的工具库,将和具体业务逻辑无关的常用功能进行抽象和封装,集成到一个类库中,方便使用维护,提升开发效率。

:package:安装

Package Manager
Install-Package Xmtool -Version 2.2.1
.NET CLI
dotnet add package Xmtool --version 2.2.1
PackageReference
<PackageReference Include="Xmtool" Version="2.2.1" />
Paket CLI
paket add Xmtool --version 2.2.1

:hammer_and_wrench:使用说明

Xmtool为了方便调用,将所有功能统一封装集成到静态类Xmtool中,在调用相应方法时,全部以Xmtool为入口,根据方法所属功能分类逐级调用即可;同时在一定程度上支持了链式调用,大大提升了使用便利性,也使代码看起来更加优雅。

例:生成一个4位的数字短信验证码。
public string GetSmsCode()
{
    string code = Xmtool.Random().RandomCaptcha(4, true);
    return code;
}
例:判断字符串是否有效手机号码
public bool IsMobile(string str)
{
    return Xmtool.Regex().IsMobile(str);
}

:pencil:文档

🎈 协议

Xmtool 使用 MIT 协议

MIT License Copyright (c) 2019 softwaiter Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

.NetCore常用方法工具类库(正则表达式常用判断、日期时间常用方法、XML快速遍历、动态扩展对象、图片验证码生成、阿里/腾讯短信发送、发送邮件、Json配置文件解析、加密解密等等,持续继承中...) 展开 收起
C#
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/softwaiter/netcoreTools.git
git@gitee.com:softwaiter/netcoreTools.git
softwaiter
netcoreTools
Xmtool
master

搜索帮助