internal static void ThrowInvalidOperation (Func<bool> condition, string message) { if (condition.Invoke ()) throw new InvalidOperationException (message); }
private void ValidateSettingsAreLoaded() { ConfigGuard.ThrowInvalidOperation(() => !_isLoaded, "The config hasn't been initialised. Call Config.Initialise if you are using the global config or LoadSettings if you have created a separate instance."); }