settings.cs

来自「Beginning Visual C# 2005 关于如何调试程序的的源码.」· CS 代码 · 共 43 行

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

namespace Ch07Ex01.Properties
{
   public partial class Settings : System.Configuration.ApplicationSettingsBase
   {
      private static Settings m_Value;

      private static object m_SyncObject = new object();

      public static Settings Value
      {
         get
         {
            if ((Settings.m_Value == null))
            {
               System.Threading.Monitor.Enter(Settings.m_SyncObject);
               if ((Settings.m_Value == null))
               {
                  try
                  {
                     Settings.m_Value = new Settings();
                  }
                  finally
                  {
                     System.Threading.Monitor.Exit(Settings.m_SyncObject);
                  }
               }
            }
            return Settings.m_Value;
         }
      }
   }
}

⌨️ 快捷键说明

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