ThrowInvalidOperation() static private method

static private ThrowInvalidOperation ( Func condition, string message ) : void
condition Func
message string
return void
Exemplo n.º 1
0
 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.");
 }