Html 使用名称相同但参数不同的帮助程序

Html 使用名称相同但参数不同的帮助程序,html,razor,helpers,webmatrix,Html,Razor,Helpers,Webmatrix,我的页面中有两个助手Project.cshtml。代码如下: @helper Fields() { @* How to call a helper Fields(-1)? *@ } @helper Fields(int projectID) { @* Code *@ } 我可以在另一个帮助程序中调用帮助程序吗???我将使用,而不是提供许多方法重载: @helper Fields(int projectId = 0){ if(projectId > 0){

我的页面中有两个助手Project.cshtml。代码如下:

@helper Fields()
{
    @* How to call a helper Fields(-1)?  *@
}

@helper Fields(int projectID)
{
  @* Code *@
}
我可以在另一个帮助程序中调用帮助程序吗???

我将使用,而不是提供许多方法重载:

@helper Fields(int projectId = 0){
    if(projectId > 0){
        ....
    }
    ....
}