/// <summary>
 /// Creates a new <see cref="ParameterTransformerCacheEntry"/> instance.
 /// </summary>
 /// <param name="source">Source parameter type information.</param>
 /// <param name="destination">Destination parameter type information.</param>
 /// <param name="target">Method target parameter type information.</param>
 /// <param name="parameterFactory">Parameter factory creator.</param>
 /// <param name="transformer">Parameter tranformer function.</param>
 public ParameterTransformerCacheEntry(TypeInfo source, TypeInfo destination, TypeInfo target, Func <TypeInfo, object> parameterFactory, TransformerFuntion transformer)
 {
     this.Source           = source;
     this.Destination      = destination;
     this.Target           = target;
     this.ParameterFactory = parameterFactory;
     this.Transformer      = transformer;
 }
예제 #2
0
 /// <summary>
 /// Creates a new <see cref="TransformerModel"/> instance.
 /// </summary>
 /// <param name="source">Source parameter information.</param>
 /// <param name="destination">Destination parameter information.</param>
 /// <param name="transformer">Transformer function.</param>
 public TransformerModel(TypeInfo source, TypeInfo destination, TransformerFuntion transformer)
 {
     this.Source = source;
     this.Destination = destination;
     this.Transformer = transformer;
 }
예제 #3
0
 /// <summary>
 /// Creates a new <see cref="TransformerModel"/> instance.
 /// </summary>
 /// <param name="source">Source parameter information.</param>
 /// <param name="destination">Destination parameter information.</param>
 /// <param name="transformer">Transformer function.</param>
 public TransformerModel(TypeInfo source, TypeInfo destination, TransformerFuntion transformer)
 {
     Source      = source;
     Destination = destination;
     Transformer = transformer;
 }