2016年3月21日

LINQ与反射

摘要: string file = @"C:\Windows\winsxs\x86_netfx35linq-system.core_31bf3856ad364e35_6.1.7601.17514_none_6161fc35ed136622\System.Core.dll"; Assembly assembly = Assembly.LoadFrom(file); ... 阅读全文

posted @ 2016-03-21 16:42 雯大侠 阅读(186) 评论(0) 推荐(0) 编辑

LINQ结合正则表达式查询文件系统

摘要: string startFolder = @"D:\Program Files (x86)\Microsoft Visual Studio 12.0\"; IEnumerable fileList = GetFiles(startFolder); Regex searchTerm = new Regex(@"Visual (Basic|C#|St... 阅读全文

posted @ 2016-03-21 16:20 雯大侠 阅读(551) 评论(0) 推荐(0) 编辑

c#正则表达式

摘要: 参考:http://www.cnblogs.com/sosoft/p/regex.html,做个记录 (1)基本的语法字符 \d 0-9的数字\D \d的补集(以所有字符为全集,下同),即所有非数字的字符\w 单词字符,指大小写字母、0-9的数字、下划线\W \w的补集\s 空白字符,包括换行符\n 阅读全文

posted @ 2016-03-21 14:32 雯大侠 阅读(216) 评论(0) 推荐(0) 编辑

导航