C# Class _3PA.Lib.IniReader

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

Méthodes publiques

Méthode 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 méthode

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
Résultat string

GetValue() public méthode

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
Résultat string

IniReader() public méthode

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