public string Get_Setting(string Key)
{
// If the list is undefined, return NULL
if ((Settings == null) || (Settings.Count == 0))
return null;
// Ensure the dictionary was built
if (settingLookupDictionary == null) settingLookupDictionary = new Dictionary<string, StringKeyValuePair>(StringComparer.OrdinalIgnoreCase);
if (settingLookupDictionary.Count != Settings.Count)
{
foreach (StringKeyValuePair setting in Settings)
settingLookupDictionary[setting.Key] = setting;
}
// Does this key exist?
return settingLookupDictionary.ContainsKey(Key) ? settingLookupDictionary[Key].Value : null;
}