예제 #1
0
 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));
 }
예제 #2
0
 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));
 }