I wanted a pattern to manage web.config appsettings. I want to be able to have a default setting if the config setting was missing. I also wanted the check for the value in the config file to happen only once, not each time the the value is retrieved.Public NotInheritable Class ExternalReportRequestBL    ''' <summary>    ''' The default value for max number of request attempts    ''' </summary>    ''' <remarks></remarks>    Private Shared _ReportRequestMaxExecuteAttemptDefault As Integer    Shared Sub New()        If Not Integer.TryParse(ConfigurationManager.AppSettings(ReportRequestMaxExecuteAttempt), ExternalReportRequestBL._ReportRequestMaxExecuteAttemptDefault) Then            _ReportRequestMaxExecuteAttemptDefault = 10        End If    End Sub    Friend Shared ReadOnly Property MaxNumberOfTries As Integer        Get            Return ExternalReportRequestBL._ReportRequestMaxExecuteAttemptDefault        End Get    End PropertyEnd ClassNow, I can access the variable from anywhere in the assembly:ExternalReportRequestBL.MaxNumberOfTriesWhat are your thoughts?
Managing web.config appSettings
asp.net;vb.net