zoukankan      html  css  js  c++  java
  • 调用读写配置文件类的全局类

     1using System;
     2
     3namespace SSSSystem.Class
     4{
     5    /// <summary>
     6    /// Global 的摘要说明。
     7    /// </summary>

     8    public class Global
     9    {
    10        private static Global _global = null;
    11        public Global()
    12        {
    13            //
    14            // TODO: 在此处添加构造函数逻辑
    15            //
    16        }

    17        public static Global GetInstance()
    18        {
    19            if (_global  == null)
    20            {
    21                _global = new Global();
    22            }

    23
    24            return _global;
    25        }

    26
    27        private ConfigSettings settings = new ConfigSettings((new ConfigSettingDefaults()).Value);
    28        /// <summary>
    29        /// 操纵Appconfig配置文件类
    30        /// </summary>

    31        public ConfigSettings Settings
    32        {
    33            get{return settings;}
    34        }

    35    }

    36}

    37
  • 相关阅读:
    Celery的使用
    python中使用redis
    Redis基础
    版本控制器git
    day 74作业
    Djangorestfromwork作业1
    Django rest-framework的jwt认证
    Django --form验证
    cx-oracle-------------------安装
    排序算法
  • 原文地址:https://www.cnblogs.com/telephoner/p/174588.html
Copyright © 2011-2022 走看看