Orc.NuGetExplorer.NuGetSettings.GetValue C# (CSharp) Method

GetValue() public method

public GetValue ( string section, string key, bool isPath ) : string
section string
key string
isPath bool
return string
        public string GetValue(string section, string key, bool isPath)
        {
            Argument.IsNotNullOrWhitespace(() => section);
            Argument.IsNotNullOrWhitespace(() => key);

            var settingValue = GetValues(section, isPath).FirstOrDefault(x => string.Equals(x.Key, key));

            var result = settingValue == null ? string.Empty : settingValue.Value;

            return result;
        }