Пример #1
0
        public override void ProcessData(RoutePath path, RouteData data)
        {
            base.ProcessData(path, data);
            var s = path.ConsumeAll();

            data[parameter.Name] = Convert.ChangeType(s, parameter.ParameterType);
        }
Пример #2
0
 protected override bool Accept(RoutePath path)
 {
     if (path.Current != null)
     {
         path.ConsumeAll();
         return(true);
     }
     return(false);
 }