示例#1
0
 /// <summary>
 /// Tries the get value.
 /// </summary>
 /// <param name="key">The key.</param>
 /// <param name="value">The value.</param>
 /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
 public bool TryGetValue(string key, out QueryOperation value)
 {
     return(_operations.TryGetValue(key, out value));
 }
示例#2
0
 /// <summary>
 /// Adds the operation.
 /// </summary>
 /// <param name="operation">The operation.</param>
 public void AddOperation(QueryOperation operation)
 {
     Validation.ThrowIfNull(operation, nameof(operation));
     _operations.Add(operation.Name, operation);
 }