在 Visual Studio 2015 中关闭系统级的 Runtime Exceptions

摘要: 在 Visual Studio 2015 中,打开 Common Language Runtime Exceptions,以便排除代码中的bug。但是无数的系统级exceptions会引起讨厌的中断,使调试难以进行。可以关闭这些系统级中断: Tools -> Options -> Debugging 阅读全文
posted @ 2017-11-11 01:30 橡皮鱼 阅读(325) 评论(0) 推荐(0) 编辑

在 Visual Studio 2015 中关闭 Browser Link

摘要: 从 Visual Studio 2013 起,增加了Browser Link功能。实际上,是一个很讨厌的东西(不知道功用是什么),在debug mode下,一直向浏览器的debug console输出XML Parsing errors。菜单上也找不到关闭的按钮。只能在web.config中关闭。添 阅读全文
posted @ 2017-11-11 01:23 橡皮鱼 阅读(980) 评论(0) 推荐(0) 编辑

List<T>.ForEach()的使用

摘要: 直接写函数代码 调用其它类的函数,执行代码调用函数中 调用其它类的函数,执行代码为调用者与调用函数代码混合 直接写函数代码 调用其它类的函数,执行代码调用函数中 调用其它类的函数,执行代码为调用者与调用函数代码混合 直接写函数代码 调用其它类的函数,执行代码调用函数中 调用其它类的函数,执行代码为调 阅读全文
posted @ 2017-09-30 07:26 橡皮鱼 阅读(4309) 评论(0) 推荐(0) 编辑

使用Microsoft.Practices.EnterpriseLibrary.Validation.dll验证类成员

摘要: public class MyClass { [StringLengthValidator(1, 32, MessageTemplate = "MyValue is too long", Ruleset = "MyRules")] [MyValidator(MessageTemplate="MyValue is invalid", Ruleset = "MyRules")] ... 阅读全文
posted @ 2017-09-21 00:10 橡皮鱼 阅读(385) 评论(0) 推荐(0) 编辑

jQuery.filter()的强大功能

摘要: 使用jQuery.filter(),你几乎可以随心所欲地选择元素,因为你可以使用函数。 例如: var myVar=$('div').filter(function(){ return this.innerHTML.indexOf("1234") !== -1;}); 不管如何,返回true就是你要 阅读全文
posted @ 2017-03-02 09:28 橡皮鱼 阅读(250) 评论(0) 推荐(0) 编辑

jQuery Checkbox Selected

摘要: For example: $("input:checked" ).length gives the number of selected checkboxes. 阅读全文
posted @ 2015-10-31 04:10 橡皮鱼 阅读(157) 评论(0) 推荐(0) 编辑

Get SQL String From Query Object In Entity Framework

摘要: ObjectContext ((System.Data.Objects.ObjectQuery)query).ToTraceString(); 阅读全文
posted @ 2015-10-22 05:00 橡皮鱼 阅读(120) 评论(0) 推荐(0) 编辑

为web.config创建web.xsd

摘要: Give this a shot. In Visual Studio 2010, open your app.config or web.config file. Go to the XML menu and select Create Schema. This action should crea... 阅读全文
posted @ 2014-09-20 02:32 橡皮鱼 阅读(220) 评论(0) 推荐(0) 编辑

深度剖析.NET之*.config

摘要: http://www.codeproject.com/Articles/16466/Unraveling-the-Mysteries-of-NET-Configurationhttp://www.codeproject.com/Articles/16724/Decoding-the-Mysterie... 阅读全文
posted @ 2014-08-08 06:40 橡皮鱼 阅读(99) 评论(0) 推荐(0) 编辑

静态类构造函数

摘要: 静态类构造函数和普通类构造函数不同之处在于,静态类构造函数没有可见性定义pulic或者private,而是用static取代,原因在于这个构造函数是不能被调用的。例如:public static class MyClass{ static MyClass() { }} 阅读全文
posted @ 2014-07-29 02:43 橡皮鱼 阅读(432) 评论(0) 推荐(0) 编辑