Nini.Ini.IniWriter.ValidateStateKey C# (CSharp) Method

ValidateStateKey() private method

Validates whether a key can be written.
private ValidateStateKey ( ) : void
return void
        private void ValidateStateKey()
        {
            ValidateState ();

            switch (writeState)
            {
            case IniWriteState.BeforeFirstSection:
            case IniWriteState.Start:
                throw  new InvalidOperationException ("The WriteState is not Section");
            case IniWriteState.Closed:
                throw  new InvalidOperationException ("The writer is closed");
            }
        }