Dev2.Common.GlobalConstants.GlobalConstants C# (CSharp) Method

GlobalConstants() static private method

static private GlobalConstants ( ) : System
return System
         static GlobalConstants()
         {
             SystemEvents.TimeChanged += (sender, args) =>
             {
                 // ReSharper disable once ConvertToLambdaExpression
                 CultureInfo.CurrentCulture.ClearCachedData();
             };

             /**********************************************************
              * Hear ye Hear ye
              * The event below allows warewolf to react to changes in regional settings by clearing the Culture cache.
              * The method below is not tested using integration tests because it is difficult to change regional settings without restarting explorer.exe
              * If a good way is found to do this, then please add integration tests. 
              * Dont delete this method
              */
             SystemEvents.UserPreferenceChanged += (sender, args) =>
             {
                 // ReSharper disable once ConvertToLambdaExpression
                 CultureInfo.CurrentCulture.ClearCachedData();
             };
            
         }
        // ReSharper disable InconsistentNaming