随笔分类 - C#/.NET
摘要:如图样:View结构MainView(MainViewModel)|---Guide1View(Guide1ViewModel)|---Guide2View(Guide2ViewModel) |---Guide2_1View1(Guide2_1ViewModel) |---Guide2_1Vie...
        阅读全文
                
摘要:原文:《使用log4net,没有日志文件生成》Posted on 2014/06/12================================================================================log4net主页:Apache log4net: H...
        阅读全文
                
摘要:。 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...
        阅读全文
                
摘要:原文: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
        阅读全文
                
摘要:看一个例子: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 ...
        阅读全文
                
 
                    
                
 浙公网安备 33010602011771号
浙公网安备 33010602011771号