I am using ASP.NET MVC2 and I would like to make up a url based on the current one in the address bar inside a HtmlHelper extension. So far I have this:
url = helper.ViewContext.RequestContext.RouteData.Values
.Aggregate<KeyValuePair<String, Object>>((w, next) => w + next);
But that does not compile. Anyone has a good idea on how to solve this Aggregate function?