Removed a leftover property and added a method in the IniConfig to get a section by name

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1765 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-04-10 12:05:20 +00:00
commit 0d0c0a5f45
2 changed files with 13 additions and 3 deletions

View file

@ -260,6 +260,18 @@ namespace Greenshot.IniFile {
}
}
/// <summary>
/// Method used for internal tricks...
/// </summary>
/// <param name="sectionName"></param>
/// <returns></returns>
public static IniSection GetIniSection(string sectionName) {
if (sectionMap.ContainsKey(sectionName)) {
return sectionMap[sectionName];
}
return null;
}
/// <summary>
/// A generic method which returns an instance of the supplied type, filled with it's configuration
/// </summary>