comparison NonExistantIniSection.cs @ 2:2dde4c1d19d9

Closes #6 - Create INI parser * Add more documentation * Change NonExistantIniSection so that the constructor won't cause an exception * Fix IniFileReader so that the reading from string actually reads from the parameter
author IBBoard <dev@ibboard.co.uk>
date Mon, 12 Jan 2009 20:34:07 +0000
parents fbde5e1920ba
children f6f726c92e56
comparison
equal deleted inserted replaced
1:f9444f1786cd 2:2dde4c1d19d9
4 4
5 using System; 5 using System;
6 6
7 namespace IBBoard.Ini 7 namespace IBBoard.Ini
8 { 8 {
9 /// <summary>
10 /// A special case sub-class of <see cref=" IniSection"/> for when <see cref=" IniFile"/> does not contain the required section.
11 /// Used to reduce "if not null" checks as they won't contain any lines or properties, as recommended by Rober C Martin's "Cleaner Code" book
12 /// </summary>
9 public class NonExistantIniSection : IniSection 13 public class NonExistantIniSection : IniSection
10 { 14 {
11 public NonExistantIniSection() : base("") 15 public NonExistantIniSection() : base("NonExistant")
12 { 16 {
13 } 17 }
14 } 18 }
15 } 19 }