예제 #1
0
        public static EventToMethodRoute Create <TRouteType>(Component routeOutComponent, EventInfo eventInfo, Component routeInComponent, Expression <Action <TRouteType> > methodExpression, RouteConverter routeConverter)
        {
            if (eventInfo == null)
            {
                throw new ArgumentNullException("eventInfo");
            }

            return(EventToMethodRoute.Create(routeOutComponent, eventInfo.Name, routeInComponent, methodExpression, routeConverter));
        }
예제 #2
0
 public static EventToMethodRoute Create <TRouteType>(Component routeOutComponent, EventInfo eventInfo, Component routeInComponent, Expression <Action <TRouteType> > methodExpression)
 {
     return(EventToMethodRoute.Create(routeOutComponent, eventInfo, routeInComponent, methodExpression, null));
 }