NuGet.ProxyCache.GetConfigValue C# (CSharp) Method

GetConfigValue() private method

private GetConfigValue ( string key, bool decrypt = false ) : string
key string
decrypt bool
return string
        private string GetConfigValue(string key, bool decrypt = false)
        {
            var element = _document.SelectSingleNode(@"configuration/config/add[@key='" + key + "']");
            if (element != null && !String.IsNullOrEmpty(element.Value))
            {
                return decrypt ? EncryptionUtility.DecryptString(element.Value) : element.Value;
            }
            return null;
        }