methods that give error : <p>a developer has left the company and left me with his code.
it was working fine</p>

<p>but when I copied the code into my computer, I started getting all sort of errors</p>

<p>There are methods that are used that do not have any definition anywhere, not even google.</p>

<p>Methods are : <strong>get_Routes(), get_Formatters(), get_XmlFormatter(), get_SupportedMediaTypes()</strong></p>

<p>does anyone know where to define or get these methods from?
do I need to import any library?</p>

<p>this is the code</p>

<pre><code>using System;
using System.Collections.ObjectModel;
using System.Linq;
using System.Net.Http.Formatting;
using System.Net.Http.Headers;
using System.Runtime.CompilerServices;
using System.Web.Http;

namespace IntMan.WebAPI.App_Start
{
    public static class WebApiConfig
    {
        public static void Register(HttpConfiguration config)
        {
            CorsHttpConfigurationExtensions.EnableCors(config);
            HttpConfigurationExtensions.MapHttpAttributeRoutes(config);
            HttpRouteCollectionExtensions.MapHttpRoute(config.get_Routes(), "DefaultApi", "api/{controller}/{id}", new { id = RouteParameter.Optional });
            MediaTypeHeaderValue mediaTypeHeaderValue = config.get_Formatters().get_XmlFormatter().get_SupportedMediaTypes().FirstOrDefault&lt;MediaTypeHeaderValue&gt;((MediaTypeHeaderValue t) =&gt; t.MediaType == "application/xml");
            config.get_Formatters().get_XmlFormatter().get_SupportedMediaTypes().Remove(mediaTypeHeaderValue);
        }
    }
}
</code></pre>
