4
4
IDocument containingNamespace = Model .Get <IDocument >(CodeAnalysisKeys .ContainingNamespace );
5
5
IReadOnlyList <IDocument > allInterfaces = Model .GetList <IDocument >(CodeAnalysisKeys .AllInterfaces );
6
6
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 () ;
9
9
if (containingAssembly != null
10
10
|| containingNamespace != null
11
11
|| (allInterfaces != null && allInterfaces .Count > 0 )
17
17
< div class = " panel-body" >
18
18
< div class = " row" >
19
19
< div class = " col-md-6" >
20
- < dl class = " dl-horizontal" >
20
+ < dl class = " dl-horizontal" >
21
21
@if (containingAssembly != null )
22
- {
22
+ {
23
23
< dt > Assembly < / dt >
24
24
< dd > @Context .GetTypeLink (containingAssembly )< / dd >
25
25
}
26
26
27
27
@if (containingNamespace != null )
28
- {
28
+ {
29
29
< dt > Namespace < / dt >
30
30
< dd > @Context .GetTypeLink (containingNamespace )< / dd >
31
31
}
32
-
32
+
33
33
@if (allInterfaces != null && allInterfaces .Count > 0 )
34
34
{
35
35
< dt > Interfaces < / dt >
36
36
< dd >
37
37
< ul class = " list-unstyled" >
38
38
@foreach (IDocument interfaceDocument in allInterfaces )
39
39
{
40
- < li > @Context .GetTypeLink (interfaceDocument )< / li >
40
+ < li > @Context .GetTypeLink (interfaceDocument )< / li >
41
41
}
42
42
< / ul >
43
43
< / dd >
44
44
}
45
-
45
+
46
46
@if (baseTypes != null && baseTypes .Count > 0 )
47
47
{
48
48
< dt > Base Types < / dt >
49
49
< dd >
50
- < ul class = " list-unstyled" >
50
+ < ul class = " list-unstyled" >
51
51
@foreach (IDocument baseType in baseTypes .Reverse ())
52
52
{
53
- < li > @Context .GetTypeLink (baseType )< / li >
53
+ < li > @Context .GetTypeLink (baseType )< / li >
54
54
}
55
55
< / ul >
56
- < / dd >
56
+ < / dd >
57
57
}
58
-
58
+
59
59
@if (derivedTypes != null && derivedTypes .Count > 0 )
60
60
{
61
61
< dt > Derived Types < / dt >
62
62
< dd >
63
63
< ul class = " list-unstyled" >
64
64
@foreach (IDocument derivedType in derivedTypes )
65
65
{
66
- < li > @Context .GetTypeLink (derivedType )< / li >
66
+ < li > @Context .GetTypeLink (derivedType )< / li >
67
67
}
68
68
< / ul >
69
- < / dd >
69
+ < / dd >
70
70
}
71
-
71
+
72
72
@if (implementingTypes != null && implementingTypes .Count > 0 )
73
73
{
74
74
< dt > Implementing Types < / dt >
75
75
< dd >
76
76
< ul class = " list-unstyled" >
77
77
@foreach (IDocument implementingType in implementingTypes )
78
78
{
79
- < li > @Context .GetTypeLink (implementingType )< / li >
79
+ < li > @Context .GetTypeLink (implementingType )< / li >
80
80
}
81
81
< / ul >
82
- < / dd >
82
+ < / dd >
83
83
}
84
84
< / dl >
85
- < / div >
85
+ < / div >
86
86
< div class = " col-md-6" >
87
87
@{
88
88
System .Text .StringBuilder hierarchy = new System .Text .StringBuilder ();
102
102
{
103
103
for (int c = 0 ; c < allInterfaces .Count ; c ++ )
104
104
{
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 ))}\" ]" );
106
106
if (! allInterfaces [c ].Destination .IsNull )
107
107
{
108
108
hierarchy .AppendLine ($" \t click Interface{c } \" {(Context .GetLink (allInterfaces [c ].Destination ))}\" " );
109
- }
109
+ }
110
110
}
111
111
}
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" );
114
114
if (derivedTypes != null && derivedTypes .Count > 0 )
115
115
{
116
116
for (int c = 0 ; c < derivedTypes .Count ; c ++ )
117
117
{
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" );
119
119
if (! derivedTypes [c ].Destination .IsNull )
120
120
{
121
121
hierarchy .AppendLine ($" \t click Derived{c } \" {(Context .GetLink (derivedTypes [c ].Destination ))}\" " );
122
- }
123
- }
124
- }
122
+ }
123
+ }
124
+ }
125
125
if (implementingTypes != null && implementingTypes .Count > 0 )
126
126
{
127
127
for (int c = 0 ; c < implementingTypes .Count ; c ++ )
128
128
{
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" );
130
130
if (! implementingTypes [c ].Destination .IsNull )
131
131
{
132
132
hierarchy .AppendLine ($" \t click Implementing{c } \" {(Context .GetLink (implementingTypes [c ].Destination ))}\" " );
133
- }
133
+ }
134
134
}
135
135
}
136
136
}
156
156
@Html.Partial( "Section\\_Methods")
157
157
@Html.Partial( "Section\\_Operators")
158
158
@Html.Partial( "Section\\_ExtensionMethods")
159
- @Html.Partial( "Section\\_SeeAlso")
159
+ @Html.Partial( "Section\\_SeeAlso")
0 commit comments