![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#
文章平均质量分 75
weixin_43648705
这个作者很懒,什么都没留下…
展开
-
c#action和function
using System; using System.Collections.Generic; using System.Reflection; namespace TimeTest { class Program { static void Main(string[] args) { Console.WriteLine(“Hello World!”); Action x = Console.WriteLine; Func xm = new Func(Timeif); x(“8”); x.Invoke(“8原创 2022-03-08 15:58:48 · 158 阅读 · 0 评论 -
已知其中一列数据,按已知列排序查询此列最近的数据
接近某一值必须要用绝对值函数【abs】,例如数:【4,5,6,7】,最接近6的肯定是5和7,其次是4,这样获得数据就是按接近程度排序的 比如: 查询 表:【table_text】中的数字列:【colNum】最接近6的数据 select*fromtable_textorderbyabs(colNum-6) ...原创 2020-09-15 17:32:54 · 90 阅读 · 0 评论 -
c#特性 同过特性获取类中的属性,获取属性对应的特性值
//获取特性值 string tableName = string.Empty; List<string> listColumnName = new List<string>(); Type objType = typeof(T_In_ReceiptDetail); //取属性上的自定义特性 foreach (PropertyInfo propInfo i...原创 2020-08-19 10:53:43 · 2669 阅读 · 0 评论