public static IHtmlString Enum2JSON(this HtmlHelper html, string varName, Type type) { return(RenderJSON(html, varName, MyEnumHelper.GetList(type))); }