public static string GetSetting(string settingName) { if (m_parser == null) { m_parser = new SettingsParser("UserSettings"); } string tmp = m_parser.GetSetting(settingName); if (tmp == null) { throw new Exception("Could not get setting value " + settingName); } return(tmp); }