ZhonTai.Common
时间戳起始日期
转换为时间戳
是否使用毫秒
获取周几
判断Guid是否为空
判断Guid是否不为空
将列表转换为树形结构
类型
数据
根条件
节点条件
添加子节点
添加子级列表到平级列表
类型
平级列表
获得子级列表的方法
子级对象
将树形列表转换为平级列表
tree.ToPlainList((a) => a.Children);
类型
树形列表
获得子级列表的方法
数据对象
深度克隆
类型
列表
数据类型转换
转换为16进制
是否小写
16进制转字节数组
转换为Base64
文件信息
初始化文件信息
文件名称
大小
上传路径
请求路径
相对路径
文件名
保存名
文件大小
扩展名
文件目录
文件请求路径
文件相对路径
文件路径
文件大小
初始化文件大小
文件大小
文件大小单位
文件字节长度
获取文件大小,单位:字节
获取文件大小,单位:K
获取文件大小,单位:M
获取文件大小,单位:G
输出描述
文件大小单位
字节
K字节
M字节
G字节
配置帮助类
加载配置文件
文件名称
环境名称
可选
自动更新
获得配置信息
配置信息
文件名称
环境名称
可选
自动更新
绑定实例配置信息
文件名称
实例配置
环境名称
可选
自动更新
打印错误信息
待打印的字符串
想要打印的颜色
打印警告信息
待打印的字符串
想要打印的颜色
打印正常信息
待打印的字符串
想要打印的颜色
打印成功的信息
待打印的字符串
想要打印的颜色
数据脱敏
Pattern explanation:
○ 1st capture group.
○ Match a Unicode digit exactly 3 times.
○ Match a Unicode digit exactly 4 times.
○ 2nd capture group.
○ Match a Unicode digit exactly 4 times.
Pattern explanation:
○ Zero-width positive lookbehind.
○ Match a character other than '\n' exactly 2 times right-to-left.
○ Match a character other than '@' greedily at least once.
○ Zero-width positive lookahead.
○ Match a character other than '\n' exactly 2 times.
○ Match '@'.
Pattern explanation:
○ 1st capture group.
○ Match '0' through '9' atomically at least 1 and at most 3 times.
○ Match '.'.
○ 2nd capture group.
○ Match '0' through '9' atomically at least 1 and at most 3 times.
○ Match '.'.
○ 3rd capture group.
○ Match '0' through '9' atomically at least 1 and at most 3 times.
○ Match '.'.
○ 4th capture group.
○ Match '0' through '9' atomically at least 1 and at most 3 times.
手机号脱敏
邮箱脱敏
IP脱敏
Des加解密
DES+Base64加密
采用ECB、PKCS7
加密字符串
秘钥
DES+Base64解密
采用ECB、PKCS7
解密字符串
秘钥
DES+16进制加密
采用ECB、PKCS7
加密字符串
秘钥
是否小写
DES+16进制解密
采用ECB、PKCS7
解密字符串
秘钥
DES加密
DES解密
写文件
文件路径
文件内容
写文件
文件路径
文件内容
编码格式
读文件
文件路径
读文件
文件路径
编码格式
是否为ip
获得IP地址
Json帮助类
序列化
反序列化
反序列化
json文本
类型
MD5加密
16位MD5加密
32位MD5加密
64位MD5加密
字符串帮助类
生成随机字符串,默认32位
随机数长度
生成随机字符串,只包含数字
字符串转Unicode码
The to unicode.
Value.
Unicode转字符串
The to string.
Unicode.
判断字符串是否为Null、空
判断字符串是否不为Null、空
与字符串进行比较,忽略大小写
首字母转小写
首字母转大写
转为Base64,UTF-8格式
转为Base64
编码
Custom -derived type for the PhoneMaskRegex method.
Cached, thread-safe singleton instance.
Initializes the instance.
Provides a factory for creating instances to be used by methods on .
Creates an instance of a used by methods on .
Provides the runner that contains the custom logic implementing the specified regular expression.
Scan the starting from base.runtextstart for the next match.
The text being scanned by the regular expression.
Search starting from base.runtextpos for the next location a match could possibly start.
The text being scanned by the regular expression.
true if a possible match was found; false if no more matches are possible.
Determine whether at base.runtextpos is a match for the regular expression.
The text being scanned by the regular expression.
true if the regular expression matches at the current position; otherwise, false.
Custom -derived type for the EmailMaskRegex method.
Cached, thread-safe singleton instance.
Initializes the instance.
Provides a factory for creating instances to be used by methods on .
Creates an instance of a used by methods on .
Provides the runner that contains the custom logic implementing the specified regular expression.
Scan the starting from base.runtextstart for the next match.
The text being scanned by the regular expression.
Search starting from base.runtextpos for the next location a match could possibly start.
The text being scanned by the regular expression.
true if a possible match was found; false if no more matches are possible.
Determine whether at base.runtextpos is a match for the regular expression.
The text being scanned by the regular expression.
true if the regular expression matches at the current position; otherwise, false.
Custom -derived type for the IPMaskRegex method.
Cached, thread-safe singleton instance.
Initializes the instance.
Provides a factory for creating instances to be used by methods on .
Creates an instance of a used by methods on .
Provides the runner that contains the custom logic implementing the specified regular expression.
Scan the starting from base.runtextstart for the next match.
The text being scanned by the regular expression.
Search starting from base.runtextpos for the next location a match could possibly start.
The text being scanned by the regular expression.
true if a possible match was found; false if no more matches are possible.
Determine whether at base.runtextpos is a match for the regular expression.
The text being scanned by the regular expression.
true if the regular expression matches at the current position; otherwise, false.
Helper methods used by generated -derived implementations.
Default timeout value set in , or if none was set.
Whether is non-infinite.