摘要:
Regex regex = new Regex(@"[\u4e00-\u9fa5]"); // 定义正则表达式,匹配Unicode编码范围内的中文字符 string input = "fefe 年年年 商 eeeeee"; // string matches = regex.Replace(inpu 阅读全文
摘要:
#region 压缩和解压字符串 /// <summary> /// 将传入字符串以GZip算法压缩后,返回Base64编码字符 /// </summary> /// <param name="rawString">需要压缩的字符串</param> /// <returns>压缩后的Base64编码 阅读全文
摘要:
string url = "http://localhost:5082/cookie/test2"; var cookies = new CookieContainer(); var handler = new HttpClientHandler() { CookieContainer = cook 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Text.RegularExpressions; namespace YiSha.Util { pub 阅读全文
摘要:
string[] ip = new string[] { }; ip = IP.Split(new char[] { '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '-', '=', '+', '/', '\\', ',', '?', 阅读全文
摘要:
/// <summary> /// 转换人民币大小金额 /// </summary> /// <param name="num">金额</param> /// <returns>返回大写形式</returns> public static string CmycurD(decimal num) { 阅读全文
摘要:
RPC 全称Remote Procedure Call 即 远程调用 .NET Remoting : 是.NET 平台独有的,不支持跨平台。 GRPC: 是.NET Core 中的,高性能,开源和通用的grpc框架,面向服务端和移动端,基于HTTP/2设计 微服务架构1.0 时代: 服务的实例集群, 阅读全文