コード例 #1
0
 internal static ToRoute MapIndexedChildrenTo <TParent>(this string memberName, IndexedChildRouteDelegate <TParent> route, IEnumerable <ToRoute> childRoutes = null)
 {
     // set up a virtual view as a child of the view.
     // that virutal view can then expose the #'d grandchildren as children.
     return(() => new View <TParent>(memberName, route, childRoutes));
 }
コード例 #2
0
 internal IndexedChildMap(string memberName, IndexedChildRouteDelegate <TParent> childAccessor, IEnumerable <ToRoute> childRoutes)
     : base(memberName, childRoutes)
 {
     _route  = childAccessor;
     _active = true;
 }