PageRenderTime 57ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/Kilimanjaro_RTM/HelloWorld_CLR/HelloWorldService/vb/HelloWorldService/My Project/MySettings.vb

#
Visual Basic | 38 lines | 23 code | 7 blank | 8 comment | 0 complexity | 827da7d65b0dcc08ab8e954ebe626318 MD5 | raw file
  1. '------------------------------------------------------------------------------
  2. ' <autogenerated>
  3. ' This code was generated by a tool.
  4. '
  5. ' Changes to this file may cause incorrect behavior and will be lost if
  6. ' the code is regenerated.
  7. ' </autogenerated>
  8. '------------------------------------------------------------------------------
  9. Option Strict Off
  10. Option Explicit On
  11. Partial Friend NotInheritable Class MySettings
  12. Inherits System.Configuration.ApplicationSettingsBase
  13. Private Shared m_Value As MySettings
  14. Private Shared m_SyncObject As Object = New Object
  15. <System.Diagnostics.DebuggerNonUserCode()> _
  16. Public Shared ReadOnly Property Value() As MySettings
  17. Get
  18. If (MySettings.m_Value Is Nothing) Then
  19. System.Threading.Monitor.Enter(MySettings.m_SyncObject)
  20. If (MySettings.m_Value Is Nothing) Then
  21. Try
  22. MySettings.m_Value = New MySettings
  23. Finally
  24. System.Threading.Monitor.Exit(MySettings.m_SyncObject)
  25. End Try
  26. End If
  27. End If
  28. Return MySettings.m_Value
  29. End Get
  30. End Property
  31. End Class