System.Web.Http.HttpRouteCollection doesn't have a setter method, do instead use the Remove() and Add() methods.