Example #1
0
 public MemberEmitterDescription Build(List<MappingMember> members)
 {
     var emitter = new EmitComposite();
     members.ForEach(x => emitter.Add(Build(x)));
     var result = new MemberEmitterDescription(emitter, _mapperCache);
     result.AddMapper(_mapperCache);
     return result;
 }
Example #2
0
        public MemberEmitterDescription Build(List <MappingMember> members)
        {
            var emitter = new EmitComposite();

            members.ForEach(x => emitter.Add(Build(x)));
            var result = new MemberEmitterDescription(emitter, _mapperCache);

            result.AddMapper(_mapperCache);
            return(result);
        }
Example #3
0
        public MemberEmitterDescription Build(TypePair parentTypePair, List <MappingMemberPath> members)
        {
            var emitComposite = new EmitComposite();

            foreach (var path in members)
            {
                IEmitter emitter = Build(parentTypePair, path);
                emitComposite.Add(emitter);
            }
            var result = new MemberEmitterDescription(emitComposite, _mapperCache);

            result.AddMapper(_mapperCache);
            return(result);
        }