Class
IniDocument
Represents an INI document.
public sealed class IniDocument : IEquatable<IniDocument>Inheritance #
Implements #
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| IniDocument(IEnumerable<IniSection>) | Creates an new IniDocument instance from the specified IniSection collection. |
| IniDocument() | Creates an new empty IniDocument instance with no INI sections added to it. |
Properties #
| Name | Description |
|---|---|
| Global | Gets the global INI section, which is the primary section in the document. |
| Sections | Gets all INI sections defined in this INI document. |
Methods #
| Name | Description |
|---|---|
| Equals(IniDocument?) | |
| Equals(object?) | |
| FromFile(string, Encoding?, bool) | Creates an new IniDocument document from the specified file using the specified encoding. |
| FromStream(Stream, Encoding?) | Creates an new IniDocument document from the specified stream using the specified encoding. |
| FromStream(TextReader) | Creates an new IniDocument document from the specified TextReader. |
| FromString(string) | Creates an new IniDocument document from the specified string, reading it as an UTF-8 string. |
| GetEntries() | Retrieves all entries in the INI document. |
| GetEntry(string, StringComparison) | Retrieves the values of a specific entry in the INI document. |
| GetHashCode() | |
| GetSection(string) | Gets an defined INI section from this document. The search is case-insensitive. |
| SaveTo(string, Encoding?) | Saves the INI document to a file. |
| SaveTo(Stream, Encoding?) | Saves the INI document to a stream. |
| ToString() | Gets the INI document string from this IniDocument. |