/// <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); }
public void AddValueTransformation(ValueTransformerConfiguration valueTransformerConfiguration) { _valueTransformerConfigs.Add(valueTransformerConfiguration); }