Mercurial > repos > IBBoard.Ini
view NonExistantIniSection.cs @ 10:848e7b151d3c
Re #17 - Make INI section names and keys case insensitive
* Add ToLower() when adding sections and lines to dictionaries
* Add ToLower() when getting sections and lines from dictionaries
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Thu, 26 Mar 2009 20:12:07 +0000 |
parents | f6f726c92e56 |
children |
line wrap: on
line source
// This file (NonExistantIniSection.cs) is a part of [SOME APPLICATION] and is copyright 2009 IBBoard. // // The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license. using System; namespace IBBoard.Ini { /// <summary> /// A special case sub-class of <see cref=" IniSection"/> for when <see cref=" IniFile"/> does not contain the required section. /// 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 /// </summary> public class NonExistantIniSection : IniSection { public NonExistantIniSection() : base("NonExistant") { } } }