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)); }
internal IndexedChildMap(string memberName, IndexedChildRouteDelegate <TParent> childAccessor, IEnumerable <ToRoute> childRoutes) : base(memberName, childRoutes) { _route = childAccessor; _active = true; }