Jecho

导航

2014年7月24日 #

delegate, event - 里面涉及的参数类型必须完全一致,子类是不行的

摘要: public void TestF() { Test += Fun; } public void Fun(Person p) { } // 如 Person变成 SubPerson,则报错。。public void Fun(SubPerson p) { } public event A... 阅读全文

posted @ 2014-07-24 16:41 Jecho 阅读(114) 评论(0) 推荐(0) 编辑

Struct 是值类型,不支持继承

摘要: Struct 是值类型,不支持继承 阅读全文

posted @ 2014-07-24 16:40 Jecho 阅读(152) 评论(0) 推荐(0) 编辑

Binding and styling text to a RichTextBox in WPF

摘要: http://www.codeproject.com/Articles/137209/Binding-and-styling-text-to-a-RichTextBox-in-WPFTheRichTextBoxin WPF is a great tool for dealing with text ... 阅读全文

posted @ 2014-07-24 14:37 Jecho 阅读(506) 评论(0) 推荐(0) 编辑