internal override void PrepareMapping()
 {
     foreach (MemberInfo miSrc in KlassSrc.GetMembers())
     {
         TryMapping(miSrc, KlassDst.GetMember(miSrc.Name));
     }
 }
 public void Match(string nameFrom, string nameTo)
 {
     MemberInfo[] miDsts = KlassDst.GetMember(nameTo);
     foreach (MemberInfo miSrc in KlassSrc.GetMember(nameFrom))
     {
         if (TryMapping(miSrc, miDsts, true, true))
         {
             break;
         }
     }
 }
예제 #3
0
        public void For <R>(string nameTo, Func <R> func)
        {
            IMemberGetter getter = new FuncGetter <R>(func);

            TryMapping(getter, KlassDst.GetMember(nameTo), true, false);
        }