Table of Contents

ConfigureExchange Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Patterns.cs

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

setup Action<TSource>

The delegate that will configure the public read-write properties of TSource.

initializer Action<TSource, TResult>

The delegate that will exchange the parameter of setup from TSource to TResult.

Returns

Action<TResult>

An Action<T> otherwise equivalent to setup.

Type Parameters

TSource

The type of the configuration options class having a default constructor.

TResult

The type of the configuration options class having a default constructor.