NSoft.NFramework.Nini.Ini.IniWriter.ValidateStateKey C# (CSharp) Метод

ValidateStateKey() приватный Метод

Validates whether a key can be written.
private ValidateStateKey ( ) : void
Результат 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");
            }
        }