NETT

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年5月19日

摘要: 在c#中一个类的静态成员有静态变量和静态方法,这里首先介绍静态变量.首先说一下静态变量的特点:1.静态变量属于类,而不属于类的任何实例.(From MSDN:Use the static modifier to declare a static member, which belongs to the type itself rather than to a specific object.)2.... 阅读全文
posted @ 2010-05-19 23:49 nett 阅读(192) 评论(0) 推荐(1) 编辑