Пример #1
0
 internal DictionaryMap(string memberName, DictionaryDelegateWithView <TParent, TKey, TVal> route, Func <string, string> keyExchanger, IEnumerable <ToRoute> childRoutes)
     : base(memberName, childRoutes)
 {
     _route        = route;
     _keyExchanger = keyExchanger;
 }
Пример #2
0
 internal static ToRoute MapToDictionary <TParent, TKey, TVal>(this string memberName, DictionaryDelegateWithView <TParent, TKey, TVal> route, Func <string, string> keyExchanger, IEnumerable <ToRoute> childRoutes = null)
 {
     return(() => new View <TParent, TKey, TVal>(memberName, route, keyExchanger, childRoutes));
 }
Пример #3
0
 internal DictionaryMap(string memberName, DictionaryDelegateWithView <TParent, TKey, TVal> route, IEnumerable <ToRoute> childRoutes)
     : this(memberName, route, x => x, childRoutes)
 {
     _route = route;
 }