|
IConverterCollection | Add (Converter converter, Type baseType=null, bool allowDisambiguates=false, CancellationToken cancellationToken=default(CancellationToken)) |
| Adds a Converter instance to the collection of ConverterCollection.Items More...
|
|
IConverterCollection | Add< TIn, TOut > (Func< TIn, TOut > converterAction, Type baseType=null, CancellationToken cancellationToken=default(CancellationToken)) |
| Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate More...
|
|
IConverterCollection | Add< TIn, TOut, TBase > (Func< TIn, TOut > converterAction, CancellationToken cancellationToken=default(CancellationToken)) |
| Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate More...
|
|
IConverterCollection | Add< TIn, TArg, TOut > (Func< TIn, TArg, TOut > converterActionAny, Type baseType=null, CancellationToken cancellationToken=default(CancellationToken)) |
| Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate More...
|
|
IConverterCollection | Add< TIn, TOut, TBase > (Func< TIn, TOut, TOut > converterAction, CancellationToken cancellationToken=default(CancellationToken)) |
| Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate More...
|
|
IConverterCollection | Add (object converterDelegate, Type baseType=null, CancellationToken cancellationToken=default(CancellationToken)) |
| Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate More...
|
|
IConverterCollection | Add< TBase > (object converterDelegate, CancellationToken cancellationToken=default(CancellationToken)) |
| Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate More...
|
|
Definition at line 18 of file IConverterCollection.cs.
IConverterCollection Core.TypeCast.IConverterCollection.Add |
( |
Converter |
converter, |
|
|
Type |
baseType = null , |
|
|
bool |
allowDisambiguates = false , |
|
|
CancellationToken |
cancellationToken = default(CancellationToken) |
|
) |
| |
Adds a Converter instance to the collection of ConverterCollection.Items
- Parameters
-
converter | The Converter instance to add to the ConverterCollection.Items |
baseType | The Type of the declaring and attributed custom converter class, if one exists |
allowDisambiguates | Optional bool value to indicate whether to allow multiple converters with the same return and parameter Types in the collection of Items. Only set to true for transform functions. |
cancellationToken | Optional token to propagate notification that operations should be canceled. From System.Threading.Tasks. |
- Returns
- Returns a IConverterCollection for safe, constricted function chaining.
- Exceptions
-
Implemented in Core.TypeCast.ConverterCollection.
IConverterCollection Core.TypeCast.IConverterCollection.Add |
( |
object |
converterDelegate, |
|
|
Type |
baseType = null , |
|
|
CancellationToken |
cancellationToken = default(CancellationToken) |
|
) |
| |
Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate
- Parameters
-
converterDelegate | An optional function delegate to use as the Converter.Function |
baseType | The Type of the declaring and attributed custom converter class, if one exists |
cancellationToken | Optional token to propagate notification that operations should be canceled. From System.Threading.Tasks. |
- Returns
- Returns a IConverterCollection for safe, constricted function chaining.
Implemented in Core.TypeCast.ConverterCollection.
Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate
- Parameters
-
converterDelegate | An optional function delegate to use as the Converter.Function |
cancellationToken | Optional token to propagate notification that operations should be canceled. From System.Threading.Tasks. |
- Returns
- Returns a IConverterCollection for safe, constricted function chaining.
- Exceptions
-
Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate
- Template Parameters
-
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) |
TArg | The Argument Type for generic converters using see ObjectExtension.ConvertTo<TIn, TOut>(TIn, object). - Parameters
-
converterActionAny | A function delegate Func<TIn, TArg, TOut> to use as the Converter.Function |
baseType | The Type of the declaring and attributed custom converter class, if one exists |
cancellationToken | Optional token to propagate notification that operations should be canceled. From System.Threading.Tasks. |
- Returns
- Returns a IConverterCollection for safe, constricted function chaining.
- Exceptions
-
|
Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate
- Template Parameters
-
- Parameters
-
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. |
- Returns
- Returns a IConverterCollection for safe, constricted function chaining.
- Exceptions
-
Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate
- Template Parameters
-
- Parameters
-
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. |
- Returns
- Returns a IConverterCollection for safe, constricted function chaining.
- Exceptions
-
Creates and adds a Converter instance to the collection of ConverterCollection.Items using a Delegate
- Template Parameters
-
- Parameters
-
converterActionDefault | A function delegate Func<TIn, TOut, TOut> to use as the Converter.Function |
baseType | The Type of the declaring and attributed custom converter class, if one exists |
cancellationToken | Optional token to propagate notification that operations should be canceled. From System.Threading.Tasks. |
- Returns
- Returns a IConverterCollection for safe, constricted function chaining.
- Exceptions
-
ConcurrentDictionary<Assembly, bool> Core.TypeCast.IConverterCollection.AssemblyInitialized |
|
get |
Sets the Assembly as initialized in AssemblyInitialized
- Parameters
-
type | the TypeInfo instance from which to lookup the TypeInfo.Assembly |
- Returns
- Returns true if the concurrent dictionary update succeeded
Definition at line 25 of file IConverterCollection.cs.
int Core.TypeCast.IConverterCollection.Count |
|
get |
BlockingCollection<Converter> Core.TypeCast.IConverterCollection.Items |
|
get |
The BlockingCollection<Converter> class provides a thread-safe collection with full support of the Producer-Consumer pattern, to store a collection of Converter instances.
Definition at line 31 of file IConverterCollection.cs.
The documentation for this interface was generated from the following file: