9 namespace Core.TypeCast.Base
12 using System.Diagnostics.CodeAnalysis;
13 using System.Reflection;
38 [System.Runtime.InteropServices.ComVisible(
false)]
68 [SuppressMessage(
"StyleCop.CSharp.MaintainabilityRules",
"SA1402:FileMayOnlyContainASingleClass", Justification =
"Reviewed. Suppression is OK here.")]
87 collection.
Add((Func<TIn, TOut, TOut>)this.Convert, this.GetType());
97 public abstract TOut Convert(TIn value, TOut defaultValue =
default(TOut));
The converter dependency provides loose implementation of Converters, merely constricting the constru...
IConverterCollection Add(Converter converter, Type baseType=null, bool allowDisambiguates=false, CancellationToken cancellationToken=default(CancellationToken))
Adds a Converter instance to the collection of ConverterCollection.Items
The Base Converter interface.
The generic class used for deriving specific dependency-injection classes, used for reflection...
ConverterCollectionDependency(IConverterCollection collection)
Initializes a new instance of the ConverterCollectionDependency class.