public IEnumerable MapValues(IEnumerable fromList, Type toInstanceOfType) { var to = (ICollection <TResult>) TranslateListWithElements <TResult> .CreateInstance(toInstanceOfType); foreach (object item in fromList) { to.Add(ValueMapper.MapValue <TResult>(item)); } return(to); }
public static TReturn Map <TReturn>(this IRecord record) { return(ValueMapper.MapValue <TReturn>(record[0])); }