Authlete
PropertiesLoader Class Reference

Loader for properties files. See the description of java.util.Properties.load(java.io.Reader) about the format of properties files. More...

Static Public Member Functions

static IDictionary< string, string > Load (TextReader reader)
 Extract key-value pairs from a reader whose content complies with the specification of the properties file. See the description of java.util.Properties.load(java.io.Reader) about the format of properties files. More...
 

Detailed Description

Loader for properties files. See the description of java.util.Properties.load(java.io.Reader) about the format of properties files.

using (TextReader reader = File.OpenText("test.properties"))
{
IDictionary<string, string> properties =
PropertiesLoader.Load(reader);
}

Member Function Documentation

◆ Load()

static IDictionary<string, string> Load ( TextReader  reader)
inlinestatic

Extract key-value pairs from a reader whose content complies with the specification of the properties file. See the description of java.util.Properties.load(java.io.Reader) about the format of properties files.

Returns
Key-value pairs extracted from the reader.
Parameters
readerA reader whose content complies with the specification of the properties file.
Exceptions
ArgumentExceptionA malformed '\uxxxx' sequence was found.

The documentation for this class was generated from the following file: