上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 31 下一页
摘要: public static string RemoveAllAttributesWithoutSrc(string input) { string pattern = @"]*(\ssrc=['\""][^'\""]*['\""]))?[^>]*?(\/?)>"; var result = Regex.Repla... 阅读全文
posted @ 2016-08-30 12:50 张保维 阅读(224) 评论(0) 推荐(0)
摘要: https://support.microsoft.com/en-us/kb/324639 执行 net localgroup "Performance Monitor Users" "IIS apppool\aaaaaa.bbbffffffffbb.com.cn" /add 会出现: C:\WINDOWS\system32>net localgroup "Perfor... 阅读全文
posted @ 2016-07-26 17:20 张保维 阅读(513) 评论(0) 推荐(0)
摘要: 以下内容为转载: A:https://dotblogs.com.tw/asdtey/2009/09/27/10793 B:http://www.gitshah.com/2014/08/how-to-add-nolock-hint-to.html 1,方法一 使用 TransactionScope 2, 使用 ObjectContext.Connection.BeginTrans... 阅读全文
posted @ 2016-06-22 09:42 张保维 阅读(259) 评论(0) 推荐(0)
摘要: 1, var cf = new ConnectionFactory { Uri = Uri, RequestedHeartbeat = 30 }; while (innerTaskRunning) { using (var conn = cf.CreateConnection()) ... 阅读全文
posted @ 2016-03-25 12:55 张保维 阅读(213) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/fish-li/archive/2011/06/06/2073626.html#_label0 http://www.jb51.net/article/23611.htm 阅读全文
posted @ 2015-12-18 13:19 张保维 阅读(165) 评论(0) 推荐(0)
摘要: 借鉴了http://stackoverflow.com/questions/4473928/c-sharp-dynamic-string-property-path public class ReflectUtil { public static object ReflectOnPath(object o, string path) ... 阅读全文
posted @ 2015-11-10 18:30 张保维 阅读(182) 评论(0) 推荐(0)
摘要: 来源于 http://stackoverflow.com/questions/3187444/convert-xml-string-to-object 阅读全文
posted @ 2015-11-10 10:29 张保维 阅读(129) 评论(0) 推荐(0)
摘要: 又是语法糖。 1, if (tdata != null && tdata.Data != null) 等价于 if (tdata?.Data != null) 2, int a = 1 ; var y = string.Format(“xyz{0}”,a); 相当于 var y = $"xyz{a}"; 3, private _cacheToUse... 阅读全文
posted @ 2015-07-21 17:22 张保维 阅读(898) 评论(0) 推荐(0)
摘要: 在原来的项目中曾经启用了Nuget在编译时还原包功能。这样就会在 *.sln在平行目录生成 一个.Nuget文件夹, 删除了它,就好了。 我分析原因是, VS 2015 使用的是 NugetPackage Manager 3.0.0 , 而这个项目是旧版本由 VS 2013 创建,Vs2013 所使用是 Nuget 2.7 左右的版本。 两个版本不一致,造成了异常。 阅读全文
posted @ 2015-07-21 14:49 张保维 阅读(6018) 评论(2) 推荐(0)
摘要: 下载 Maven 最新版本。 http://maven.apache.org/download.cgi 1,下载包后,解压到相应特定位置。 2,将 [解压位置]/bin 加入到Path 3, 运行 mvn –version 表示成功了。 阅读全文
posted @ 2015-03-17 16:47 张保维 阅读(122) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 31 下一页