ConfigureExchange Method
Definition
ConfigureExchange<TSource, TResult>(Action<TSource>, Action<TSource, TResult>)
Returns the delegate that will configure the public read-write properties of TResult.
public static Action<TResult> ConfigureExchange<TSource, TResult>(Action<TSource> setup, Action<TSource, TResult> initializer = null) where TSource : class, IParameterObject, new() where TResult : class, new()
Parameters
setupAction<TSource>The delegate that will configure the public read-write properties of
TSource.initializerAction<TSource, TResult>The delegate that will exchange the parameter of
setupfromTSourcetoTResult.
Returns
Type Parameters
TSourceThe type of the configuration options class having a default constructor.
TResultThe type of the configuration options class having a default constructor.