Пример #1
0
 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
 public void ApplyHtmlAttributes()
 {
     Parameters = HtmlReflectionHelper.ExtractHtmlAttributes(Parameters, EXPECTATIONS);
 }
Пример #4
0
 private void InitHelper()
 {
     _helper = new HtmlReflectionHelper(WrappedType, MethodName);
 }