public static bool HandleHtmlTags(ITag tag, TagDocumentation documentation) { if (tag is HtmlHelperWrapperTag) { var htmlTag = (HtmlHelperWrapperTag)tag; var htmlHelper = new HtmlReflectionHelper(htmlTag.WrappedType, htmlTag.MethodName); foreach (var method in htmlHelper.AllMethods) { documentation.Methods.Add(new FunctionDocumentation("",documentation.MessagePath, new WrappedFunctionDocumentation(method))); } return true; } return false; }
public static bool HandleHtmlTags(ITag tag, TagDocumentation documentation) { if (tag is HtmlHelperWrapperTag) { var htmlTag = (HtmlHelperWrapperTag)tag; var htmlHelper = new HtmlReflectionHelper(htmlTag.WrappedType, htmlTag.MethodName); foreach (var method in htmlHelper.AllMethods) { documentation.Methods.Add(new FunctionDocumentation("",documentation.MessagePath, new WrappedFunctionDocumentation(method))); } return true; } return false; }
public void ApplyHtmlAttributes() { Parameters = HtmlReflectionHelper.ExtractHtmlAttributes(Parameters, EXPECTATIONS); }
private void InitHelper() { _helper = new HtmlReflectionHelper(WrappedType, MethodName); }