/// <summary> /// Adds the specified argument. /// </summary> /// <param name="argument">The argument.</param> public void Add(ExecutionArgument argument) { Validation.ThrowIfNull(argument, nameof(argument)); _arguments.Add(argument.Name, argument); }
/// <summary> /// Gets the value that is associated with the specified key. /// </summary> /// <param name="key">The key to locate.</param> /// <param name="value">When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.</param> /// <returns>true if the object that implements the <see cref="T:System.Collections.Generic.IReadOnlyDictionary`2"></see> interface contains an element that has the specified key; otherwise, false.</returns> public bool TryGetValue(string key, out ExecutionArgument value) { return(_arguments.TryGetValue(key, out value)); }