Static Class 存储配置信息

 public static class Configuration
    {
       static string  _shpFolder;
       static string _shpName;

       static  Configuration()
       {
           _shpFolder = @"E:\CZShapes";
           _shpName = "funPolygon";
       }

       public static string ShpFolder
       {
           get { return _shpFolder; }
       }

       public static string ShpName
       {
           get { return _shpName; }
       }
    }

 

posted on 2012-05-10 14:22  imihiro  阅读(208)  评论(0编辑  收藏  举报