Пример #1
0
 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));
 }
Пример #2
0
 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));
 }