private void ValidateState() { if(writeState == IniWriteState.Closed) { throw new InvalidOperationException("The writer is closed"); } }