Esempio n. 1
0
        /// <summary>
        /// Apply a transformation function after any resolved destination member value with the given type
        /// </summary>
        /// <typeparam name="TValue">Value type to match and transform</typeparam>
        /// <param name="valueTransformers">Value transformer list</param>
        /// <param name="transformer">Transformation expression</param>
        public static void Add <TValue>(this IList <ValueTransformerConfiguration> valueTransformers,
                                        Expression <Func <TValue, TValue> > transformer)
        {
            var config = new ValueTransformerConfiguration(typeof(TValue), transformer);

            valueTransformers.Add(config);
        }
Esempio n. 2
0
 public void AddValueTransformation(ValueTransformerConfiguration valueTransformerConfiguration)
 {
     _valueTransformerConfigs.Add(valueTransformerConfiguration);
 }