Burrow.ConnectionString.GetValue C# (CSharp) Method

GetValue() public method

Get value of a key from the connection string
public GetValue ( string key ) : string
key string
return string
        public string GetValue(string key)
        {
            if (key == null)
            {
                throw new ArgumentNullException(nameof(key));
            }

            var lowerKey = key.ToLower();
            if (!_parametersDictionary.ContainsKey(lowerKey))
            {
                throw new Exception($"No value with key '{key}' exists");
            }
            return _parametersDictionary[lowerKey];
        }

Same methods

ConnectionString::GetValue ( string key, string defaultValue ) : string