Sisk

Class

IniWriter

Namespace
Sisk.IniConfiguration.Core.Serialization
Assembly
Sisk.IniConfiguration.Core.dll

Represents a writer for INI files.

C#
public sealed class IniWriter : IDisposable

Inheritance #

object ← IniWriter

Implements #

IDisposable

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
IniWriter(TextWriter)Initializes a new instance of the IniWriter class.

Properties #

NameDescription
CommentCharGets or sets the default comment character.
NewLineBehaviorGets or sets the behavior for writing new lines inside properties values.
WriterGets the underlying text writer.

Methods #

NameDescription
Dispose()Releases all resources used by the IniWriter object.
Write(string, string?)Writes a key-value pair to the INI file.
Write(in KeyValuePair<string, string[]>)Writes a key-value pair to the INI file, where the value is an array of strings.
Write(IniSection)Writes an INI section to the INI file.
Write(IniDocument)Writes an INI document to the INI file.
WriteComment(string)Writes a comment to the INI file.

Type to search the documentation and the API reference.