.NET Portable TypeCast  3.1.0.4
A, easy-to-use tested, generic, portable, runtime-extensible, arbitrary type converter library
ConverterFactoryGeneric.cs
Go to the documentation of this file.
1 // <copyright file=mitlicense.md url=http://lsauer.mit-license.org/ >
2 // Lo Sauer, 2013-2016
3 // </copyright>
4 // <summary> A tested, generic, portable, runtime-extensible type converter library </summary
5 // <language> C# > 6.0 </language>
6 // <version> 3.1.0.2 </version>
7 // <author> Lorenz Lo Sauer; people credited in the sources </author>
8 // <project> https://github.com/lsauer/dotnet-portable-type-cast </project>
9 using System;
10 using System.Reflection;
11 
12 namespace Core.TypeCast.Base
13 {
18  public abstract class ConverterFactory<TInstance> : ConverterFactoryRT<TInstance> where TInstance : class
19  {
28  public abstract TInstance Create<TIn, TOut>(Func<TIn, TOut> method);
29 
38  public abstract TInstance Create<TIn, TOut>(Func<TIn, TOut, TOut> method);
39  }
40 }
Creates new instances of Converter<TIn, TOut> or Converter<TIn, TOut, TArg> dependent on the number o...
Creates new instances of Converter<TIn, TOut> dependent on the source TIn and target Type TOut ...