Created
July 11, 2014 13:01
-
-
Save hagbarddenstore/9ae61c2885b5cd262dbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from match in Regex.Matches(actionRoute.Url, "\\{(\\w+)\\}").OfType<Match>() | |
let parameterName = match.Groups[1].Value | |
join parameter in action.GetParameters() on parameterName.ToLower() equals parameter.Name.ToLower() | |
select new { Name = parameterName, Parameter = parameter } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment