Example #1
0
        public RouteFeature ConvertRouteFeature(string s)
        {
            try
            {
                RouteFeatureType       type   = EnumHelper.GetValue <RouteFeatureType>(s.Split(':')[0]);
                RouteFeatureWeightType weight = EnumHelper.GetValue <RouteFeatureWeightType>(s.Split(':')[1]);

                return(new RouteFeature(type, weight));
            }
            catch
            {
                return(null);
            }
        }
Example #2
0
 /// <summary>
 /// </summary>
 /// <param name="routeFeatureType">  Type of the route feature.</param>
 /// <param name="routeFeatureWeight">The route feature weight.</param>
 public RouteFeature(RouteFeatureType routeFeatureType, RouteFeatureWeightType routeFeatureWeight)
 {
     FeatureType   = routeFeatureType;
     FeatureWeight = routeFeatureWeight;
 }