Ejemplo n.º 1
0
 public List <TOut> To <TOut>(IMapContainer map)
 {
     if (SourceCollection == null)
     {
         return(new List <TOut>());
     }
     return((from i in SourceCollection select MapContextHelper.Map <T, TOut>(i, map)).ToList());
 }
Ejemplo n.º 2
0
 public IDictionary <TOutKey, TOutValue> To <TOutKey, TOutValue>(IMapContainer map)
 {
     if (SourceCollection == null)
     {
         return(new Dictionary <TOutKey, TOutValue>());
     }
     return(SourceCollection.ToDictionary(item => MapContextHelper.Map <TKey, TOutKey>(item.Key), item => MapContextHelper.Map <TValue, TOutValue>(item.Value, map)));
 }
Ejemplo n.º 3
0
 public TOut To <TOut>(TOut target, IMapContainer map)
 {
     return(MapContextHelper.Map(Source, map, target));
 }