09 2022 档案
摘要:C# 判断一个点是否在线段上 using System; using System.Collections.Generic; using System.Windows; namespace PointInLineTest { class Program { static void Main(stri
阅读全文
摘要:将DataTable转换为类 众所周知,有时候我们需要将sql查询返回的DataTable转换为类。最开始是使用循环一个个给类的属性赋值,但是这样效率低并且无法复用。 后来了解到利用DataTable添加扩展方法可以轻松的实现这一功能 using System; using System.Colle
阅读全文
摘要:读写.ini文件工具 可以直接使用 using System; using System.Collections.Generic; using System.IO; using System.Runtime.InteropServices; using System.Text; namespace
阅读全文