I am using ASP.NET MVC2 and I would like to create a URL based on the current in the address bar inside the HtmlHelper extension. So far I have this:
url = helper.ViewContext.RequestContext.RouteData.Values .Aggregate<KeyValuePair<String, Object>>((w, next) => w + next);
But this does not compile. Does anyone have a good idea on how to solve this Aggregate feature?
linq asp.net-mvc aggregate
Nyla pareska
source share