using Microsoft.AspNetCore.Mvc.Rendering;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Microsoft.AspNetCore.Mvc.Rendering
{
public static class HtmlHelperExtension
{
public static string foo(this IHtmlHelper html,string key)
{
return "";
}
}
}
需要注意的是第7行的命名空间 和第11行的"IHtmlHelper",不是Asp.Net MVC 中的 HtmlHelper