Пример #1
0
 /// <summary>
 /// Executes the specified operation.
 /// </summary>
 /// <param name="operation">The operation.</param>
 /// <param name="source">The source.</param>
 /// <param name="target">The target.</param>
 /// <exception cref="System.ArgumentNullException">
 /// The method is null.
 /// or
 /// The source is null.
 /// or
 /// The method requires parameters which are not specified.
 /// </exception>
 /// <exception cref="System.ArgumentException">
 /// The specified source type is not supported by the method.
 /// or
 /// The specified method is not available.
 /// or
 /// The parameters do not contain a required parameter value.
 /// or
 /// The type of a parameter does not match the type specified by the method.
 /// or
 /// The value of a parameter is not within the expected range.
 /// or
 /// The specified source and result are the same objects, but the method does not support in-place operations.
 /// </exception>
 public void ExecuteOperation(OperationConfiguration operation, Object source, Object target)
 {
     ExecuteOperation(operation.Method, operation.Parameters, source, target);
 }
Пример #2
0
 /// <summary>
 /// Executes the specified operation.
 /// </summary>
 /// <param name="operation">The operation.</param>
 /// <param name="source">The source.</param>
 /// <returns>The result of the operation.</returns>
 /// <exception cref="System.ArgumentNullException">
 /// The method is null.
 /// or
 /// The source is null.
 /// or
 /// The method requires parameters which are not specified.
 /// </exception>
 /// <exception cref="System.ArgumentException">
 /// The specified source type is not supported by the method.
 /// or
 /// The specified method is not available.
 /// or
 /// The parameters do not contain a required parameter value.
 /// or
 /// The type of a parameter does not match the type specified by the method.
 /// or
 /// The value of a parameter is not within the expected range.
 /// </exception>
 public Object ExecuteOperation(OperationConfiguration operation, Object source)
 {
     return(ExecuteOperation(operation.Method, operation.Parameters, source));
 }