随笔分类 -  C#/.NET

摘要:如图样:View结构MainView(MainViewModel)|---Guide1View(Guide1ViewModel)|---Guide2View(Guide2ViewModel) |---Guide2_1View1(Guide2_1ViewModel) |---Guide2_1Vie... 阅读全文
posted @ 2015-04-22 12:10 SubmarineX 阅读(1520) 评论(0) 推荐(0)
摘要:原文:《使用log4net,没有日志文件生成》Posted on 2014/06/12================================================================================log4net主页:Apache log4net: H... 阅读全文
posted @ 2014-09-12 08:02 SubmarineX 阅读(261) 评论(0) 推荐(0)
摘要:。 1 // Summary: 2 // A timer that is integrated into the System.Windows.Threading.Dispatcher queue 3 // which is processed at a specified interval of time and at a specified priority. 4 DispatcherTimer timer = new DispatcherTimer(); 5 // Summary: 6 // Occurs when the timer interval has e... 阅读全文
posted @ 2013-09-06 14:30 SubmarineX 阅读(395) 评论(0) 推荐(0)
摘要:原文:C# Tips & Tricks:Weak References - When and How to Use ThemSometimes you have an object which is very large and needed multiple times, but not constantly, throughout your application. For example a huge lookup table, or the contents of a large file you need in memory for some algorithm. To wo 阅读全文
posted @ 2013-08-20 16:53 SubmarineX 阅读(458) 评论(0) 推荐(0)
摘要:看一个例子:1 interface IFoo2 {3 string Message { get; }4 }则,1 IFoo obj = new IFoo("abd");将会报错:接口不能被实例化。如果: 1 class Foo : IFoo 2 { 3 readonly string name; 4 public Foo(string name) 5 { 6 this.name = name; 7 } 8 string IFoo.Message 9 {10 get11 {12 ... 阅读全文
posted @ 2013-07-25 17:17 SubmarineX 阅读(7270) 评论(0) 推荐(1)