Class
IniWriter
Represents a writer for INI files.
public sealed class IniWriter : IDisposableInheritance #
Implements #
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| IniWriter(TextWriter) | Initializes a new instance of the IniWriter class. |
Properties #
| Name | Description |
|---|---|
| CommentChar | Gets or sets the default comment character. |
| NewLineBehavior | Gets or sets the behavior for writing new lines inside properties values. |
| Writer | Gets the underlying text writer. |
Methods #
| Name | Description |
|---|---|
| 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. |