当前位置: 动力学知识库 > 问答 > 编程问答 >

asp.net mvc - Where does MVC do it's URL/Route pattern matching?

问题描述:

Does anyone know the class(s) and method(s) within the Microsoft MVC framwork (any version, 3,4,5 etc) that actually does the pattern matching exercise on the URL to establish which route to use?

I'm interested to look at the actual mechanics of URL parsing but can't find the code using ILSpy.

网友答案:

Take a look under System.Web.Mvc.Routing. Specifically, RouteBuilder may contain what you're looking for.

Here's the source.

分享给朋友:
您可能感兴趣的文章:
随机阅读: