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()); }
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))); }
public TOut To <TOut>(TOut target, IMapContainer map) { return(MapContextHelper.Map(Source, map, target)); }