Mercurial > repos > IBBoard.Ini
diff IniSectionParser.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 | fbde5e1920ba |
children | 2dde4c1d19d9 |
line wrap: on
line diff
--- a/IniSectionParser.cs Thu Jan 08 20:33:56 2009 +0000 +++ b/IniSectionParser.cs Sun Jan 11 15:37:14 2009 +0000 @@ -47,12 +47,8 @@ for (int i = 1; i < lineCount; i++) { - string[] keyValuePair = IniLineParser.GetKeyValuePair(sectionLines[i]); - - if (keyValuePair.Length == 2) - { - section.AddKeyValuePair(keyValuePair[0], keyValuePair[1]); - } + IIniLine iniLine = IniLineParser.ParseIniLine(sectionLines[i]); + section.AddIniLine(iniLine); } return section;