摘要: using System; using Microsoft.Win32; using System.Diagnostics; using System.IO; namespace MSCL { /// /// 压缩解压类 /// public class ZipHelper { /// /// 利用 WinRAR 进... 阅读全文
posted @ 2017-10-16 15:53 深南大道 阅读(6628) 评论(2) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; using System.Data.SqlClient; using System.Data; using S... 阅读全文
posted @ 2017-10-16 14:09 深南大道 阅读(20752) 评论(0) 推荐(0)
摘要: using System; using System.Linq; using System.Xml.Linq; namespace Sample2 { class Program { static void Main(string[] args) { #region 写文件一(生成节点性质的) XD... 阅读全文
posted @ 2017-10-16 14:05 深南大道 阅读(9273) 评论(1) 推荐(0)
摘要: //引用using Newtonsoft.Json; using Newtonsoft.Json.Linq; public ActionResult JsonSample() { ResponseResult obj = new ResponseResult(); try { JObject jo 阅读全文
posted @ 2017-10-16 10:12 深南大道 阅读(1438) 评论(0) 推荐(0)
摘要: JSON对象与字符串之间的相互转换 阅读全文
posted @ 2017-10-16 09:37 深南大道 阅读(1546) 评论(0) 推荐(0)
摘要: 正则表达式可以: •测试字符串的某个模式。例如,可以对一个输入字符串进行测试,看在该字符串是否存在一个电话号码模式或一个信用卡号码模式。这称为数据有效性验证 •替换文本。可以在文档中使用一个正则表达式来标识特定文字,然后可以全部将其删除,或者替换为别的文字 •根据模式匹配从字符串中提取一个子字符串。可以用来在文本或输入字段中查找特定文字 正则表达式语法 一个正则表达式就是由普通字符(... 阅读全文
posted @ 2017-10-16 09:36 深南大道 阅读(942) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace Sample3 { class Program { static... 阅读全文
posted @ 2017-10-16 09:34 深南大道 阅读(13573) 评论(2) 推荐(1)