C# Class _3PA.Lib.IniReader

This classes reads a .ini file TODO: make it able to write the .ini as well?
Show file Open project: jcaillon/3P Class Usage Examples

Public Methods

Method Description
GetValue ( string key, string @default ) : string

Returns the value of given key, independently of the section (returns the first occurence found)

GetValue ( string key, string section, string @default ) : string

Returns the value of the given key, search in the given section

IniReader ( string file ) : System

Constructor, call it with the .ini to parse

Method Details

GetValue() public method

Returns the value of given key, independently of the section (returns the first occurence found)
public GetValue ( string key, string @default ) : string
key string
@default string
return string

GetValue() public method

Returns the value of the given key, search in the given section
public GetValue ( string key, string section, string @default ) : string
key string
section string
@default string
return string

IniReader() public method

Constructor, call it with the .ini to parse
public IniReader ( string file ) : System
file string
return System