.NET Portable TypeCast
3.1.0.4
A, easy-to-use tested, generic, portable, runtime-extensible, arbitrary type converter library
|
Allows to perform a deferred adding operation of multiple adds using a common Base-Class Type argument, common ConverterCollectionSettings as well as a mutual CancellationToken for the added group of converters. The operation is applied upon invoking End, and can be explicitly canceled by invoking Cancel More...
Public Member Functions | |
AddBuilder (ConverterCollection converterCollection, ConverterCollectionSettings settings=null, CancellationToken cancellationToken=default(CancellationToken)) | |
Creates a new instance of AddBuilder<TBase> for grouped-adding of converter-functions with default arguments defined in the constructor More... | |
AddBuilder (ConverterCollection converterCollection, ConverterCollectionSettings settings, ref CancellationToken cancellationToken) | |
Creates a new instance of AddBuilder<TBase> for grouped-adding of converter-functions with mutual arguments defined in the constructor More... | |
AddBuilder< TBase > | Add< TIn, TOut > (Func< TIn, TOut > converterAction) |
Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate More... | |
AddBuilder< TBase > | Add< TIn, TOut > (Func< TIn, TOut, TOut > converterActionDefault) |
Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate More... | |
IConverterCollection | Cancel () |
Dummy function to explicitly end the current chained builder operation without applying any deferred calls and clear any resources More... | |
IConverterCollection | End () |
End the deferred adding operation by invocation the deferred list of actions More... | |
Allows to perform a deferred adding operation of multiple adds using a common Base-Class Type argument, common ConverterCollectionSettings as well as a mutual CancellationToken for the added group of converters. The operation is applied upon invoking End, and can be explicitly canceled by invoking Cancel
TBase | The declaring, attributed Type of the converter-functions to add as a group. |
TBase | : | class |
Definition at line 45 of file ConverterCollection.AddBuilder.cs.
Core.TypeCast.ConverterCollection.AddBuilder< TBase >.AddBuilder | ( | ConverterCollection | converterCollection, |
ConverterCollectionSettings | settings = null , |
||
CancellationToken | cancellationToken = default(CancellationToken) |
||
) |
Creates a new instance of AddBuilder<TBase> for grouped-adding of converter-functions with default arguments defined in the constructor
converterCollection | A reference to the ConverterCollection instance |
settings | A reference to an optional ConverterCollectionSettings instance to be applied only for the group of converter-functions |
cancellationToken | An optional value-instance to the mutual CancellationToken |
Definition at line 75 of file ConverterCollection.AddBuilder.cs.
Core.TypeCast.ConverterCollection.AddBuilder< TBase >.AddBuilder | ( | ConverterCollection | converterCollection, |
ConverterCollectionSettings | settings, | ||
ref CancellationToken | cancellationToken | ||
) |
Creates a new instance of AddBuilder<TBase> for grouped-adding of converter-functions with mutual arguments defined in the constructor
converterCollection | A reference to the ConverterCollection instance |
settings | A reference to an optional ConverterCollectionSettings instance to be applied only for the group of converter-functions |
cancellationToken | An optional reference to the mutual CancellationToken |
Definition at line 91 of file ConverterCollection.AddBuilder.cs.
AddBuilder<TBase> Core.TypeCast.ConverterCollection.AddBuilder< TBase >.Add< TIn, TOut > | ( | Func< TIn, TOut > | converterAction | ) |
Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate
TIn | The Source- / From- Typefrom which to Converter<TIn,TOut>.Convert(object,object) |
TOut | The Target / To- Type to which to Converter<TIn,TOut>.Convert(object,object) |
converterAction | A function delegate Func<TIn, TOut> to use as the Converter.Function |
cancellationToken | Optional token to propagate notification that operations should be canceled. From System.Threading.Tasks. |
ConverterException | Throws a ConverterCause.ConverterCollectionAddFailed with a wrapped Exception.InnerException if an internal error occurred |
Definition at line 111 of file ConverterCollection.AddBuilder.cs.
AddBuilder<TBase> Core.TypeCast.ConverterCollection.AddBuilder< TBase >.Add< TIn, TOut > | ( | Func< TIn, TOut, TOut > | converterActionDefault | ) |
Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate
TIn | The Source- / From- Typefrom which to Converter<TIn,TOut>.Convert(object,object) |
TOut | The Target / To- Type to which to Converter<TIn,TOut>.Convert(object,object) |
converterActionDefault | A function delegate Func<TIn, TOut, TOut> to use as the Converter.Function |
cancellationToken | Optional token to propagate notification that operations should be canceled. From System.Threading.Tasks. |
ConverterException | Throws a ConverterCause.ConverterCollectionAddFailed with a wrapped Exception.InnerException if an internal error occurred |
Definition at line 127 of file ConverterCollection.AddBuilder.cs.
IConverterCollection Core.TypeCast.ConverterCollection.AddBuilder< TBase >.Cancel | ( | ) |
Dummy function to explicitly end the current chained builder operation without applying any deferred calls and clear any resources
Definition at line 137 of file ConverterCollection.AddBuilder.cs.
IConverterCollection Core.TypeCast.ConverterCollection.AddBuilder< TBase >.End | ( | ) |
End the deferred adding operation by invocation the deferred list of actions
Definition at line 146 of file ConverterCollection.AddBuilder.cs.