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");
            }
        }