public static TReturn Map <TValue1, TValue2, TReturn>(
     this IRecord record,
     Func <TValue1, TValue2, TReturn> map)
 {
     return(map(
                ValueMapper.MapValue <TValue1>(record[0]),
                ValueMapper.MapValue <TValue2>(record[1])));
 }
        public IEnumerable MapValues(IEnumerable fromList, Type toInstanceOfType)
        {
            var to = (ICollection <T>) TranslateListWithElements <T> .CreateInstance(toInstanceOfType);

            foreach (var item in fromList)
            {
                to.Add(ValueMapper.MapValue <T>(item));
            }
            return(to);
        }
 public static TReturn Map <TValue1, TValue2, TValue3, TValue4, TValue5, TValue6, TReturn>(
     this IRecord record,
     Func <TValue1, TValue2, TValue3, TValue4, TValue5, TValue6, TReturn> map)
 {
     return(map(
                ValueMapper.MapValue <TValue1>(record[0]),
                ValueMapper.MapValue <TValue2>(record[1]),
                ValueMapper.MapValue <TValue3>(record[2]),
                ValueMapper.MapValue <TValue4>(record[3]),
                ValueMapper.MapValue <TValue5>(record[4]),
                ValueMapper.MapValue <TValue6>(record[5])));
 }
 public static TReturn Map <TValue1, TValue2, TValue3, TValue4, TValue5, TValue6, TValue7, TValue8, TValue9, TValue10, TValue11, TReturn>(
     this IRecord record,
     Func <TValue1, TValue2, TValue3, TValue4, TValue5, TValue6, TValue7, TValue8, TValue9, TValue10, TValue11, TReturn> map)
 {
     return(map(
                ValueMapper.MapValue <TValue1>(record[0]),
                ValueMapper.MapValue <TValue2>(record[1]),
                ValueMapper.MapValue <TValue3>(record[2]),
                ValueMapper.MapValue <TValue4>(record[3]),
                ValueMapper.MapValue <TValue5>(record[4]),
                ValueMapper.MapValue <TValue6>(record[5]),
                ValueMapper.MapValue <TValue7>(record[6]),
                ValueMapper.MapValue <TValue8>(record[7]),
                ValueMapper.MapValue <TValue9>(record[8]),
                ValueMapper.MapValue <TValue10>(record[9]),
                ValueMapper.MapValue <TValue11>(record[10])));
 }
 public static TReturn Map <TReturn>(
     this IRecord record)
 {
     return(ValueMapper.MapValue <TReturn>(record[0]));
 }