123

//定义静态类和静态方法,未定义静态字段、属性、事件
public static class CommonHelper
 {       
    public static void PrintContent()
    {
        Console.WriteLine("Static Class");           
    }
 }

CommonHelper.PrintContent(); //调用静态类的静态方法

  

posted @ 2013-11-03 01:16  德鑫  阅读(93)  评论(0)    收藏  举报