摘要: C#实现Array,List,Dictionary的相互转换 一、代码实例实现功能 将Array转换为List 将List转换为Array 将Array转换为Dictionary 将Dictionary转换为Array 将List转换为Dictionary 将Dictionary转换为List 二、 阅读全文
posted @ 2021-11-05 17:41 码农阿亮 阅读(414) 评论(0) 推荐(0) 编辑
摘要: tnsnames.ora的配置 DB_NAME= (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = IP)(PORT = 端口号)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = 实例名称) 阅读全文
posted @ 2021-11-05 15:38 码农阿亮 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 文件夹以及文件的简单操作 笔记1: string fileName = ""; //判断文件夹 Directory.Exists(Path); //移动文件夹 Directory.Move(Path, Path); //判断文件 File.Exists(Path + fileName); //创建文 阅读全文
posted @ 2021-11-05 15:35 码农阿亮 阅读(196) 评论(0) 推荐(0) 编辑
摘要: .NET中正则表达式学习笔记 一、匹配字符串 NO.1 //正则1 Regex r = new Regex("abc"); // 定义一个Regex对象实例 Match m = r.Match("123abc456"); // 在字符串中匹配 if (m.Success) { //匹配 } //正则 阅读全文
posted @ 2021-11-05 15:34 码农阿亮 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Json与Object互转工具类 public static class Serialization { public static T JsonToObject<T>(string jsonText) { DataContractJsonSerializer dataContractJsonSer 阅读全文
posted @ 2021-11-05 15:33 码农阿亮 阅读(277) 评论(0) 推荐(0) 编辑