settings.designer.cs

来自「.NET 2.0模式开发实战源代码,使用C#说明」· CS 代码 · 共 41 行

CS
41
字号
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version:2.0.41202.0
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

namespace Chap05.GenericGUI.Configuration {


    sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {

        private static Settings m_Default;

        private static object gate = new object();

        public static Settings Default {
            get {
                if( (Settings.m_Default == null) ) {
                    System.Threading.Monitor.Enter( Settings.gate );
                    try {
                        if( (Settings.m_Default == null) ) {
                            Settings tmpObj;
                            tmpObj = new Settings();
                            System.Threading.Thread.MemoryBarrier();
                            Settings.m_Default = tmpObj;
                        }
                    }
                    finally {
                        System.Threading.Monitor.Exit( Settings.gate );
                    }
                }
                return Settings.m_Default;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?