public static ToRoute MapTo <TKey, TVal>(this string memberName, DictionaryRouteWithView <TKey, TVal> route, Func <string, string> keyExchanger, IEnumerable <ToRoute> childRoutes = null) { return(MapToDictionary <object, TKey, TVal>(memberName, (p, v) => route(v), keyExchanger, childRoutes)); }
public static ToRoute MapTo <TParent, TKey, TVal>(this string memberName, DictionaryRouteWithView <TParent, TKey, TVal> route, IEnumerable <ToRoute> childRoutes = null) { return(MapToDictionary <TParent, TKey, TVal>(memberName, (p, v) => route(p(), v), childRoutes)); }