/// <include file='IniWriter.xml' path='//Method[@name="WriteEmpty"]/docs/*' /> public void WriteEmpty() { ValidateState(); if (writeState == IniWriteState.Start) { writeState = IniWriteState.BeforeFirstSection; } WriteLine(""); }
/// <include file='IniWriter.xml' path='//Method[@name="WriteEmptyComment"]/docs/*' /> public void WriteEmpty(string comment) { ValidateState(); if (writeState == IniWriteState.Start) { writeState = IniWriteState.BeforeFirstSection; } if (comment == null) { WriteLine(""); } else { WriteLine(commentDelimiter + " " + comment); } }
/// <include file='IniWriter.xml' path='//Method[@name="WriteSectionComment"]/docs/*' /> public void WriteSection(string section, string comment) { ValidateState(); writeState = IniWriteState.Section; WriteLine("[" + section + "]" + Comment(comment)); }
/// <include file='IniWriter.xml' path='//Method[@name="Close"]/docs/*' /> public void Close() { textWriter.Close(); writeState = IniWriteState.Closed; }
/// <include file='IniWriter.xml' path='//Method[@name="WriteSection"]/docs/*' /> public void WriteSection(string section) { ValidateState(); writeState = IniWriteState.Section; WriteLine("[" + section + "]"); }
/// <include file='IniWriter.xml' path='//Method[@name="WriteEmptyComment"]/docs/*' /> public void WriteEmpty (string comment) { ValidateState (); if (writeState == IniWriteState.Start) { writeState = IniWriteState.BeforeFirstSection; } if (comment == null) { WriteLine (""); } else { WriteLine (commentDelimiter + " " + comment); } }
/// <include file='IniWriter.xml' path='//Method[@name="WriteEmpty"]/docs/*' /> public void WriteEmpty () { ValidateState (); if (writeState == IniWriteState.Start) { writeState = IniWriteState.BeforeFirstSection; } WriteLine (""); }
/// <include file='IniWriter.xml' path='//Method[@name="WriteSectionComment"]/docs/*' /> public void WriteSection (string section, string comment) { ValidateState (); writeState = IniWriteState.Section; WriteLine ("[" + section + "]" + Comment(comment)); }
/// <include file='IniWriter.xml' path='//Method[@name="WriteSection"]/docs/*' /> public void WriteSection (string section) { ValidateState (); writeState = IniWriteState.Section; WriteLine ("[" + section + "]"); }
/// <include file='IniWriter.xml' path='//Method[@name="Close"]/docs/*' /> public void Close () { textWriter.Close (); writeState = IniWriteState.Closed; }