コード例 #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());
 }
コード例 #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)));
 }
コード例 #3
0
 public TOut To <TOut>(TOut target, IMapContainer map)
 {
     return(MapContextHelper.Map(Source, map, target));
 }