NSoft.NFramework.Nini.Ini.IniWriter.WriteSection C# (CSharp) Method

WriteSection() public method

public WriteSection ( string section ) : void
section string
return void
        public void WriteSection(string section) {
            ValidateState();
            writeState = IniWriteState.Section;
            WriteLine("[" + section + "]");
        }

Same methods

IniWriter::WriteSection ( string section, string comment ) : void

Usage Example

Example #1
0
        public void KeyWithIndentation() {
            StringWriter writer = new StringWriter();
            IniWriter iniWriter = new IniWriter(writer);

            iniWriter.Indentation = 2;
            iniWriter.WriteSection("Required");
            iniWriter.WriteKey("independence day", "july");
            Assert.AreEqual("  independence day = july", ReadLine(writer, 2));
            iniWriter.Indentation = 0;
        }
All Usage Examples Of NSoft.NFramework.Nini.Ini.IniWriter::WriteSection