44 IDocument containingNamespace = Model .Get <IDocument >(CodeAnalysisKeys .ContainingNamespace );
55 IReadOnlyList <IDocument > allInterfaces = Model .GetList <IDocument >(CodeAnalysisKeys .AllInterfaces );
66 IReadOnlyList <IDocument > baseTypes = Model .GetList <IDocument >(CodeAnalysisKeys .BaseTypes );
7- IReadOnlyList <IDocument > derivedTypes = Model .GetList <IDocument >(CodeAnalysisKeys .DerivedTypes );
8- IReadOnlyList <IDocument > implementingTypes = Model .GetList <IDocument >(CodeAnalysisKeys .ImplementingTypes );
7+ IReadOnlyList <IDocument > derivedTypes = Model .GetList <IDocument >(CodeAnalysisKeys .DerivedTypes ). OrderBy ( x => x [ " DisplayName " ]). ThenBy ( x => x [ " FullName " ]). ToList () ;
8+ IReadOnlyList <IDocument > implementingTypes = Model .GetList <IDocument >(CodeAnalysisKeys .ImplementingTypes ). OrderBy ( x => x [ " DisplayName " ]). ThenBy ( x => x [ " FullName " ]). ToList () ;
99 if (containingAssembly != null
1010 || containingNamespace != null
1111 || (allInterfaces != null && allInterfaces .Count > 0 )
1717 < div class = " panel-body" >
1818 < div class = " row" >
1919 < div class = " col-md-6" >
20- < dl class = " dl-horizontal" >
20+ < dl class = " dl-horizontal" >
2121 @if (containingAssembly != null )
22- {
22+ {
2323 < dt > Assembly < / dt >
2424 < dd > @Context .GetTypeLink (containingAssembly )< / dd >
2525 }
2626
2727 @if (containingNamespace != null )
28- {
28+ {
2929 < dt > Namespace < / dt >
3030 < dd > @Context .GetTypeLink (containingNamespace )< / dd >
3131 }
32-
32+
3333 @if (allInterfaces != null && allInterfaces .Count > 0 )
3434 {
3535 < dt > Interfaces < / dt >
3636 < dd >
3737 < ul class = " list-unstyled" >
3838 @foreach (IDocument interfaceDocument in allInterfaces )
3939 {
40- < li > @Context .GetTypeLink (interfaceDocument )< / li >
40+ < li > @Context .GetTypeLink (interfaceDocument )< / li >
4141 }
4242 < / ul >
4343 < / dd >
4444 }
45-
45+
4646 @if (baseTypes != null && baseTypes .Count > 0 )
4747 {
4848 < dt > Base Types < / dt >
4949 < dd >
50- < ul class = " list-unstyled" >
50+ < ul class = " list-unstyled" >
5151 @foreach (IDocument baseType in baseTypes .Reverse ())
5252 {
53- < li > @Context .GetTypeLink (baseType )< / li >
53+ < li > @Context .GetTypeLink (baseType )< / li >
5454 }
5555 < / ul >
56- < / dd >
56+ < / dd >
5757 }
58-
58+
5959 @if (derivedTypes != null && derivedTypes .Count > 0 )
6060 {
6161 < dt > Derived Types < / dt >
6262 < dd >
6363 < ul class = " list-unstyled" >
6464 @foreach (IDocument derivedType in derivedTypes )
6565 {
66- < li > @Context .GetTypeLink (derivedType )< / li >
66+ < li > @Context .GetTypeLink (derivedType )< / li >
6767 }
6868 < / ul >
69- < / dd >
69+ < / dd >
7070 }
71-
71+
7272 @if (implementingTypes != null && implementingTypes .Count > 0 )
7373 {
7474 < dt > Implementing Types < / dt >
7575 < dd >
7676 < ul class = " list-unstyled" >
7777 @foreach (IDocument implementingType in implementingTypes )
7878 {
79- < li > @Context .GetTypeLink (implementingType )< / li >
79+ < li > @Context .GetTypeLink (implementingType )< / li >
8080 }
8181 < / ul >
82- < / dd >
82+ < / dd >
8383 }
8484 < / dl >
85- < / div >
85+ < / div >
8686 < div class = " col-md-6" >
8787 @{
8888 System .Text .StringBuilder hierarchy = new System .Text .StringBuilder ();
102102 {
103103 for (int c = 0 ; c < allInterfaces .Count ; c ++ )
104104 {
105- hierarchy .AppendLine ($" \t Type-.->Interface{c }[\" {System .Net .WebUtility .HtmlEncode (allInterfaces [c ].GetString (CodeAnalysisKeys .DisplayName ))}\" ]" );
105+ hierarchy .AppendLine ($" \t Type-.->Interface{c }[\" {System .Net .WebUtility .HtmlEncode (allInterfaces [c ].GetString (CodeAnalysisKeys .DisplayName ))}\" ]" );
106106 if (! allInterfaces [c ].Destination .IsNull )
107107 {
108108 hierarchy .AppendLine ($" \t click Interface{c } \" {(Context .GetLink (allInterfaces [c ].Destination ))}\" " );
109- }
109+ }
110110 }
111111 }
112- hierarchy .AppendLine ($" \t Type[\" {System .Net .WebUtility .HtmlEncode (Model .GetString (CodeAnalysisKeys .DisplayName ))}\" ]" );
113- hierarchy .AppendLine (" class Type type-node" );
112+ hierarchy .AppendLine ($" \t Type[\" {System .Net .WebUtility .HtmlEncode (Model .GetString (CodeAnalysisKeys .DisplayName ))}\" ]" );
113+ hierarchy .AppendLine (" class Type type-node" );
114114 if (derivedTypes != null && derivedTypes .Count > 0 )
115115 {
116116 for (int c = 0 ; c < derivedTypes .Count ; c ++ )
117117 {
118- hierarchy .AppendLine ($" \t Derived{c }[\" {System .Net .WebUtility .HtmlEncode (derivedTypes [c ].GetString (CodeAnalysisKeys .DisplayName ))}\" ]-->Type" );
118+ hierarchy .AppendLine ($" \t Derived{c }[\" {System .Net .WebUtility .HtmlEncode (derivedTypes [c ].GetString (CodeAnalysisKeys .DisplayName ))}\" ]-->Type" );
119119 if (! derivedTypes [c ].Destination .IsNull )
120120 {
121121 hierarchy .AppendLine ($" \t click Derived{c } \" {(Context .GetLink (derivedTypes [c ].Destination ))}\" " );
122- }
123- }
124- }
122+ }
123+ }
124+ }
125125 if (implementingTypes != null && implementingTypes .Count > 0 )
126126 {
127127 for (int c = 0 ; c < implementingTypes .Count ; c ++ )
128128 {
129- hierarchy .AppendLine ($" \t Implementing{c }[\" {System .Net .WebUtility .HtmlEncode (implementingTypes [c ].GetString (CodeAnalysisKeys .DisplayName ))}\" ]-.->Type" );
129+ hierarchy .AppendLine ($" \t Implementing{c }[\" {System .Net .WebUtility .HtmlEncode (implementingTypes [c ].GetString (CodeAnalysisKeys .DisplayName ))}\" ]-.->Type" );
130130 if (! implementingTypes [c ].Destination .IsNull )
131131 {
132132 hierarchy .AppendLine ($" \t click Implementing{c } \" {(Context .GetLink (implementingTypes [c ].Destination ))}\" " );
133- }
133+ }
134134 }
135135 }
136136 }
156156@Html.Partial( "Section\\_Methods")
157157@Html.Partial( "Section\\_Operators")
158158@Html.Partial( "Section\\_ExtensionMethods")
159- @Html.Partial( "Section\\_SeeAlso")
159+ @Html.Partial( "Section\\_SeeAlso")
0 commit comments