摘要: 整理代码块 代码块整理后存储,供后期使用 string ModelValue = "AB|#$CD|#$EFG|#$"; int n = ModelValue.ToString().LastIndexOf("|#$"); ModelValue.Remove(n, 1); string[] strar 阅读全文
posted @ 2023-12-20 21:47 叫夏洛啊 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 整理代码块 代码块整理后存储,供后期使用 结构体序列化与反序列化 using System; using System.Runtime.InteropServices; using System.Text; namespace structTest { /// <summary> /// 结构体序列 阅读全文
posted @ 2023-12-20 21:44 叫夏洛啊 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 整理代码块 代码块整理后存储,供后期使用 计算机蜂鸣 class Program { static void Main(string[] args) { while (true) { Console.WriteLine("please press num \"1\" or \"2\""); int 阅读全文
posted @ 2023-12-20 21:41 叫夏洛啊 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 整理代码块 代码块整理后存储,供后期使用 /// <summary> /// 包含中文 /// </summary> /// <param name="str"></param> /// <returns></returns> public static bool HasChinese(string 阅读全文
posted @ 2023-12-20 21:38 叫夏洛啊 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 各种api接口 https://www.juhe.cn/docs/index/cid/1 http://www.sohu.com/a/197059756_178408 免费数据网站 http://data.stats.gov.cn/ 国家数据中心 绝对给力 阅读全文
posted @ 2023-12-20 21:35 叫夏洛啊 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 整理代码块 代码块整理后存储,供后期使用 C# 获取属性,获取事件逻辑 Control control = Controls.Find("button1", true)[0]; // 获取属性 object o = control.GetType().GetProperty("PropertyNam 阅读全文
posted @ 2023-12-20 21:33 叫夏洛啊 阅读(73) 评论(0) 推荐(0) 编辑