2022年11月20日

摘要: Visual Studio 2022 学习地址 Visual Studio系列学习地址 Csharp11 学习地址 Csharp 学习地址 《C#.NET》 - 极客文档 (geekdaxue.co) 推荐 W3School公营,推广技术,免费学习 W3CSchool 私营,收费学习 英特尔® 产品 阅读全文
posted @ 2022-11-20 15:39 Violin_Huang 阅读(29) 评论(0) 推荐(0)

2022年11月19日

摘要: JSON(JavaScript Object Notation, JS 对象标记) 是一种轻量级的数据交换格式。 关于内存对象和JSON字符串的相互转换,在实际项目中应比较广泛,经过一番搜索,找到如下三种方法来解决此问题 分别是使用 Newtonsoft.Json.dll、DataContractJ 阅读全文
posted @ 2022-11-19 11:33 Violin_Huang 阅读(457) 评论(0) 推荐(0)
摘要: XmlTextWriter类允许你将XML写到一个文件中去。这个类包含了很多方法和属性,使用这些属性和方法可以使你更容易地处理XML。为了使用这个类,你必须首先创建一个新的XmlTextWriter对象,然后你可以将XML片断加入到这个对象中。这个类中包含了不少的方法用于将各种类型的XML元素添加到 阅读全文
posted @ 2022-11-19 11:13 Violin_Huang 阅读(390) 评论(0) 推荐(0)

2022年11月18日

摘要: /// <summary> /// 遍历所有节点的type、name、Attributes /// </summary> /// <param name="childnodelist"></param> static void PrintChildNodes(XmlNodeList childnod 阅读全文
posted @ 2022-11-18 20:04 Violin_Huang 阅读(709) 评论(0) 推荐(0)

2022年11月7日

摘要: SendKeys.Send() 向活动应用程序发送击键 SendKeys.SendWait() 向活动应用程序发送给定的键,然后等待消息被处理 这两个方法可以发送组合键,需要注意的是字母按键应为小写。如全选Ctrl+A,要用SendKeys.SendWait("^a")才有效。 按键对应的代码如下: 阅读全文
posted @ 2022-11-07 14:28 Violin_Huang 阅读(693) 评论(0) 推荐(0)

2022年11月5日

摘要: public void Linq() { List<Product> products = GetProductList(); List<Customer> customers = GetCustomerList(); var productFirstChars = from prod in pro 阅读全文
posted @ 2022-11-05 11:59 Violin_Huang 阅读(849) 评论(0) 推荐(0)
摘要: // 获取到的数据 DataTable picDt = GetPdmPoroductModelPictureData(productModelCode); // 将productCode列转数组 string[] arrPic = picDt.AsEnumerable().Select(d => d 阅读全文
posted @ 2022-11-05 11:50 Violin_Huang 阅读(791) 评论(0) 推荐(0)

2022年10月30日

摘要: string[] strArray = "a,b,c,d,e,f,g".Split(new char[]{ ',' }); int[] intArray; //C# 3.0下用此句 intArray = Array.ConvertAll<string, int>(strArray, s => int 阅读全文
posted @ 2022-10-30 14:34 Violin_Huang 阅读(128) 评论(0) 推荐(0)

2022年10月26日

摘要: ExcelDataReader 开源免费,Excel读取插件 GitHub - ExcelDataReader/ExcelDataReader: Lightweight and fast library written in C# for reading Microsoft Excel files 阅读全文
posted @ 2022-10-26 12:14 Violin_Huang 阅读(116) 评论(0) 推荐(0)

2022年10月22日

摘要: NuGet源地址 : https://nuget.org/api/v2/ https://api.nuget.org/v3/index.json (推荐) 阅读全文
posted @ 2022-10-22 14:29 Violin_Huang 阅读(323) 评论(0) 推荐(0)

导航