- 博客(3)
- 资源 (3)
- 收藏
- 关注
转载 .NET Framework 应用程序的configuration 元素(常规设置架构)
<br /> 参考资料MSDN:configuration 元素(常规设置架构)<br /> 子元素<br />元素<br />说明<br />configSections<br />指定配置节和命名空间声明。<br />appSettings<br />包含自定义应用程序设置,如文件路径、XML Web services URL 或存储在应用程序的 .ini 文件中的任何信息。<br />connectionStrings<br />为 ASP.NET 应用程序和功能指定数据库连接字符串(名称/值对的形式
2011-05-05 12:11:00 2022
原创 获取控件所有事件列表
<br />System.ComponentModel.EventDescriptorCollection events = System.ComponentModel.TypeDescriptor.GetEvents(button1);
2011-05-04 17:13:00 1614 1
转载 使用反射清除所有挂在事件上的delegate
<br />http://www.cnblogs.com/ncindy/archive/2007/03/23/685186.html<br /> <br />在.net中,event是一个相当有用的特性,它让我们可以很轻松的实现回调。但是它也有着相当的不方便之处:一个event在声明它的class之外只能使用+=/-=操作符进行delegate的增减,无法一次删除所有挂在它上面的delegate。<br />程序规模小的时候还好办,一旦程序膨胀,想弄清到底在一个事件上挂了那些delegate还真是挺麻烦的事
2011-05-04 17:09:00 1775
WPF高级编程源代码
2010-05-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人