Mercurial > repos > IBBoard.Ini
view IniKeyValuePairLine.cs @ 1:f9444f1786cd
Re #6 - INI parsing library
* Add ToString methods
* Add types of string and parse to objects instead of parsing to key-value pair
* Create method to load INI data from string
* Add content of AddSection method
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 11 Jan 2009 15:37:14 +0000 |
parents | |
children | 2dde4c1d19d9 |
line wrap: on
line source
// This file (IniKeyValuePairLine.cs) is a part of the IBBoard.Ini library and is copyright 2009 IBBoard. // // The file and the library/program it is in are licensed under the GNU LGPL license. Please see COPYING.LGPL for more information and the full license. using System; namespace IBBoard.Ini { public class IniKeyValuePairLine : IIniLine { private string keyString; private string valueString; public IniKeyValuePairLine(string keyString, string valueString) { this.keyString = keyString; this.valueString = valueString; } public string Key { get { return keyString; } } public string Value { get { return valueString; } } public override string ToString() { return Key + "=" + Value; } } }