Esempio n. 1
0
 /// <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 QueryInputArgument value)
 {
     return(_arguments.TryGetValue(key, out value));
 }
Esempio n. 2
0
 /// <summary>
 /// Adds the argument to the collection of arguments on this instance.
 /// </summary>
 /// <param name="argument">The argument.</param>
 public void AddArgument(QueryInputArgument argument)
 {
     this.Arguments.AddArgument(argument);
 }
Esempio n. 3
0
 /// <summary>
 /// Adds the input argument to the collection.
 /// </summary>
 /// <param name="argument">The argument.</param>
 public void AddArgument(QueryInputArgument argument)
 {
     Validation.ThrowIfNull(argument, nameof(argument));
     _arguments.Add(argument.Name, argument);
 }