ConfigureRevertExchange Method
Definition
ConfigureRevertExchange<TSource, TResult>(TSource, Action<TSource, TResult>)
Returns a delegate that will be initialized by initializer with the values from options.
public static Action<TResult> ConfigureRevertExchange<TSource, TResult>(TSource options, Action<TSource, TResult> initializer = null) where TSource : class, IParameterObject, new() where TResult : class, new()
Parameters
optionsTSourceThe configured options to apply an instance of
TResult.initializerAction<TSource, TResult>The delegate that will initialize a default instance of
TResultwith the values fromoptions.
Returns
Type Parameters
TSourceThe type of the configuration options having a default constructor.
TResultThe type of the configuration options having a default constructor.
Exceptions
- ArgumentNullException
optionscannot be null -or-initializercannot be null.