using System;//using 引入的意思 System命名空间 using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ...
分类:
其他好文 时间:
2020-06-03 23:21:32
阅读次数:
74
变量: int表示整数 double表示带小数点的 char表示单个字符 string表示在存储字符串的变量 bool表示判断真假 using System; using System.Collections.Generic; using System.Linq; using System.Text ...
分类:
其他好文 时间:
2020-06-03 23:07:07
阅读次数:
65
1. 设置 千万注意: 要设置成MouseDown,不然会出现一种情况就是双击选中,让用户体验感极差。 DEV19 2. 设置行选中 1 #region gridView选中 2 private void checkbox_checked(DataTable dt1, DataTable dt2) ...
分类:
其他好文 时间:
2020-06-03 12:16:08
阅读次数:
119
前言 core跨域严格来说是要分为两步的,因为分为简单跨域和复杂跨域,第一种为直接允许跨域,第二种因为存在某些框架本身不允许put,delete这两个,那么这就是一个问题了。对的,那么mvc这种重量级框架,肯定是帮我们封装好了。 正文 我们可以在配置文件中配置允许put和delete,然后设定运行的 ...
BackWork代码: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Utils { publ ...
XML处理 1.How to create xml ? XDocument customer = new XDocument( new XDeclaration("1.0", "UTF-16", "yes"), new XElement("customer", new XAttribute("id" ...
分类:
其他好文 时间:
2020-06-02 10:58:49
阅读次数:
56
LINQ 的优势并不是提供了什么新功能,而是让我们能够用更新、更简单、更优雅的方法来实现原有的功能。不过通常来讲,这类功能所带来的就是对性能上的影响——LINQ 也不例外。本篇文章的主要目的就是让你了解 LINQ 查询对性能的影响。我们将介绍最基本的 LINQ 性能分析方法,并提供一些数据。还会给出 ...
分类:
其他好文 时间:
2020-06-01 12:06:17
阅读次数:
53
原文:ASP.NET Core中使用Unity5 ⒈添加相关依赖 Install-Package Unity Install-Package Unity.RegistrationByConvention ⒉扫描项目接口实现类 1 using System; 2 using System.Linq; ... ...
分类:
编程语言 时间:
2020-05-23 09:26:21
阅读次数:
113
简易JSON字符串转换 1 /// <summary> 2 /// Json 字符串 To DataTable数据集合 3 /// </summary> 4 /// <param name="json"></param> 5 /// <returns></returns> 6 public stat ...
分类:
Web程序 时间:
2020-05-21 16:11:55
阅读次数:
58
public static System.Xml.Linq.XElement Post(HttpClient _myhttp, string url, XmlDocument doc) { HttpContent content = new StringContent(doc.InnerXml, E ...
分类:
Web程序 时间:
2020-05-19 10:32:19
阅读次数:
77