Sisk

Class

IniDocument

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

Represents an INI document.

C#
public sealed class IniDocument : IEquatable<IniDocument>

Inheritance #

object ← IniDocument

Implements #

IEquatable<IniDocument>

Inherited Members #

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

Constructors #

NameDescription
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 #

NameDescription
GlobalGets the global INI section, which is the primary section in the document.
SectionsGets all INI sections defined in this INI document.

Methods #

NameDescription
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.

Type to search the documentation and the API reference.