Class IniDocument
- Namespace
- Sisk.IniConfiguration.Core
- Assembly
- Sisk.IniConfiguration.Core.dll
Represents an INI document.
public sealed class IniDocument
- Inheritance
-
IniDocument
- Inherited Members
Constructors
- IniDocument()
Creates an new empty IniDocument instance with no INI sections added to it.
- IniDocument(IEnumerable<IniSection>)
Creates an new IniDocument instance from the specified IniSection collection.
Properties
- 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
- 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.
- GetSection(string)
Gets an defined INI section from this document. The search is case-insensitive.
- ToString()
Gets the INI document string from this IniDocument.