Method FromStream
- Namespace
- Sisk.IniConfiguration
- Assembly
- Sisk.IniConfiguration.dll
FromStream(Stream, Encoding?)
Creates an new IniDocument document from the specified stream using the specified encoding.
public static IniDocument FromStream(Stream stream, Encoding? encoding = null)
Parameters
stream
StreamThe input stream where the INI document is.
encoding
EncodingOptional. The encoding used to read the stream. Defaults to UTF-8.
Returns
FromStream(TextReader)
Creates an new IniDocument document from the specified TextReader.
public static IniDocument FromStream(TextReader reader)
Parameters
reader
TextReaderThe TextReader instance.