Ejemplo n.º 1
0
        public LambdaExpression Get(Type source, Type target, IMappingOptions options)
        {
            var key = new TypePairWithOptions(source, target, options);

            _cache.TryGetValue(key, out var value);
            return(value);
        }
Ejemplo n.º 2
0
        public void Add(Type source, Type target, IMappingOptions options, LambdaExpression mappingExpression)
        {
            var key = new TypePairWithOptions(source, target, options);

            _cache.Add(key, mappingExpression);
        }