You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following extension was necessary for us to write on your system.web version of this library.
You made classes public so that we could do extensions like this in that library.
This is a preemptive attempt at making sure the same kind of classes are now exposed publicly in this library too.
public static RouteValueDictionary RouteValueDictionary<TController>(
this UrlHelper helper,
Expression<Func<TController, Task>> action,
object routeValues = null)
where TController : Controller
{
var routeInfo = RouteInformation.FromExpression<TController>(action, routeValues);
var dictionary = routeInfo.RouteValueDictionary;
dictionary.Add("controller", routeInfo.ControllerName);
dictionary.Add("action", routeInfo.ActionName);
return dictionary;
}
Thanks!!
The text was updated successfully, but these errors were encountered:
The following extension was necessary for us to write on your system.web version of this library.
You made classes public so that we could do extensions like this in that library.
This is a preemptive attempt at making sure the same kind of classes are now exposed publicly in this library too.
Thanks!!
The text was updated successfully, but these errors were encountered: