NuGet.SettingsExtensions.GetConfigValue C# (CSharp) Method

GetConfigValue() public static method

Retrieves a config value for the specified key
public static GetConfigValue ( this settings, string key, bool decrypt = false ) : string
settings this The settings instance to retrieve
key string The key to look up
decrypt bool Determines if the retrieved value needs to be decrypted.
return string
        public static string GetConfigValue(this ISettings settings, string key, bool decrypt = false)
        {
            return decrypt ? settings.GetDecryptedValue(ConfigSection, key) : settings.GetValue(ConfigSection, key);
        }