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; }
       }
    }
原文地址:https://www.cnblogs.com/imihiroblog/p/2494284.html