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