2013年7月17日

C# Static修饰符的作用

摘要: MSDN上的定义 Use the static modifier to declare a static member, which belongs to the type itself rather than to a specific object. The static modifier can be used with classes, fields, methods, propert... 阅读全文

posted @ 2013-07-17 17:34 CynthiaHuo 阅读(2380) 评论(0) 推荐(0) 编辑

[转]C#静态方法与非静态方法的比较

摘要: http://wenku.baidu.com/view/4e1704084a7302768e9939e0.html C#的类中可以包含两种方法:C#静态方法与非静态方法。那么他们的定义有什么不同呢?他们在使用上会有什么不同呢?让我们来看看最直观的差别:使用了static 修饰符的方法为静态方法,反之则是非静态方法。 下面我们分四个方面来看看C#静态方法与非静态方法的差异: C#静态方法与非静... 阅读全文

posted @ 2013-07-17 17:32 CynthiaHuo 阅读(382) 评论(0) 推荐(1) 编辑

导航