PageRenderTime 54ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/Katmai_June2008_RC0/ShoppingCart/ShoppingCartClient/CS/ShoppingCartClient/Properties/Settings.cs

#
C# | 39 lines | 24 code | 6 blank | 9 comment | 4 complexity | cc3ecb77b11a091d1d2d8b9e0b19e2c0 MD5 | raw file
  1. //------------------------------------------------------------------------------
  2. // <autogenerated>
  3. // This code was generated by a tool.
  4. // Runtime Version:2.0.40603.0
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </autogenerated>
  9. //------------------------------------------------------------------------------
  10. namespace Properties {
  11. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1812:AvoidUninstantiatedInternalClasses")]
  12. sealed partial class Settings : System.Configuration.ApplicationSettingsBase {
  13. private static Settings m_Value;
  14. private static object m_SyncObject = new object();
  15. [System.Diagnostics.DebuggerNonUserCode()]
  16. public static Settings Value {
  17. get {
  18. if ((Settings.m_Value == null)) {
  19. System.Threading.Monitor.Enter(Settings.m_SyncObject);
  20. if ((Settings.m_Value == null)) {
  21. try {
  22. Settings.m_Value = new Settings();
  23. }
  24. finally {
  25. System.Threading.Monitor.Exit(Settings.m_SyncObject);
  26. }
  27. }
  28. }
  29. return Settings.m_Value;
  30. }
  31. }
  32. }
  33. }