Example #1
0
        private void BuildPropertyRow(XDoc html, ReflectedPropertyInfo member)
        {
            var xmlDoc = GetDoc(member.Signature);

            html.Start("tr")
            .Elem("td", member.MemberAccess)
            .Start("td").StartSpan("member");
            if (IsTypeInDocumentation(member.DeclaringType))
            {
                html.Link(member.UriPath, member.DisplayName);
            }
            else
            {
                html.Value(member.DisplayName);
            }
            html
            .EndSpan()
            .StartSpan("description");
            if (member.IsOverride && !member.IsInherited)
            {
                html.Value("(Override)");
            }
            html.AddNodes(xmlDoc["summary"]);
            if (member.IsInherited)
            {
                html.Value(string.Format("(Inherited from {0})", member.DeclaringType.DisplayName));
            }
            html
            .EndSpan()
            .End()      // td
            .End();     // tr
        }
Example #2
0
        private void BuildFieldRow(XDoc html, ReflectedFieldInfo member)
        {
            var xmlDoc = GetDoc(member.Signature);

            html.Start("tr")
            .Elem("td", member.MemberAccess)
            .Start("td").StartSpan("member");
            if (IsTypeInDocumentation(member.DeclaringType))
            {
                html.Link(member.UriPath, member.DisplayName);
            }
            else
            {
                html.Value(member.DisplayName);
            }
            html
            .EndSpan()
            .StartSpan("description").AddNodes(xmlDoc["summary"]).EndSpan()
            .End()      // td
            .End();     // tr
        }
 private void BuildFieldRow(XDoc html, ReflectedFieldInfo member) {
     var xmlDoc = GetDoc(member.Signature);
     html.Start("tr")
             .Elem("td", member.MemberAccess)
             .Start("td").StartSpan("member");
     if(IsTypeInDocumentation(member.DeclaringType)) {
         html.Link(member.UriPath, member.DisplayName);
     } else {
         html.Value(member.DisplayName);
     }
     html
                 .EndSpan()
                 .StartSpan("description").AddNodes(xmlDoc["summary"]).EndSpan()
             .End() // td
         .End(); // tr
 }
 private void BuildPropertyRow(XDoc html, ReflectedPropertyInfo member) {
     var xmlDoc = GetDoc(member.Signature);
     html.Start("tr")
             .Elem("td", member.MemberAccess)
             .Start("td").StartSpan("member");
     if(IsTypeInDocumentation(member.DeclaringType)) {
         html.Link(member.UriPath, member.DisplayName);
     } else {
         html.Value(member.DisplayName);
     }
     html
             .EndSpan()
             .StartSpan("description");
     if(member.IsOverride && !member.IsInherited) {
         html.Value("(Override)");
     }
     html.AddNodes(xmlDoc["summary"]);
     if(member.IsInherited) {
         html.Value(string.Format("(Inherited from {0})", member.DeclaringType.DisplayName));
     }
     html
                 .EndSpan()
             .End() // td
         .End(); // tr
 }