我正在尝试转换此代码,但出现一些错误,这是代码的主要链接。
我收到这两个错误:
类型“域路由未定义
和
“可选”不是“system.web.UI.webControls.routeParameter”的成员
代码:
public class HttpDomainRoute
: DomainRoute
{
public HttpDomainRoute(string domain, string url, RouteValueDictionary defaults)
: base(domain, url, defaults, HttpControllerRouteHandler.Instance)
{
}
public HttpDomainRoute(string domain, string url, object defaults)
: base(domain, url, new RouteValueDictionary(defaults), HttpControllerRouteHandler.Instance)
{
}
}
到这个asp.net vb 4
Public Class HttpDomainRoute
Inherits DomainRoute
Public Sub New(domain As String, url As String, defaults As RouteValueDictionary)
MyBase.New(domain, url, defaults, HttpControllerRouteHandler.Instance)
End Sub
Public Sub New(domain As String, url As String, defaults As Object)
MyBase.New(domain, url, New RouteValueDictionary(defaults), HttpControllerRouteHandler.Instance)
End Sub
End Class