SANTA.IO.ConfigReader.hasValue C# (CSharp) Méthode

hasValue() public méthode

Determines if the config file has the specified key. Compares it to the default config file.
public hasValue ( string key ) : bool
key string Name of the key to check
Résultat bool
        public bool hasValue(string key)
        {
            List<string> allKeys = new List<string>(ConfigurationManager.AppSettings.AllKeys);

            return allKeys.Contains(key);
        }