blob: b7eb5aacd4bd422c1362879b3951e41b0bd99265 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
// Compiler options: -doc:xml-022.xml
//
// Combined tests (for detecting incorrect markup targeting).
//
using System;
/// <summary>
/// xml comment is not allowed here.
/// </summary>
namespace Testing
{
/// <summary>
/// </incorrect>
public class Test2
{
/**
another documentation style (Java-mimic)
*/
public static void Foo ()
{
/// here is an extraneous comment
}
public static void Main ()
{
}
}
/// testing indentation <summary> test test ;-)
/// comment for struct
/// </summary>
public struct StructTest
{
}
/// <summary>
/// comment for interface
/// </summary>
public interface InterfaceTest
{
}
/// <summary>
/// comment for enum type
/// </summary>
public enum EnumTest
{
/// <summary>
/// comment for enum field
/// </summary>
Foo,
Bar,
}
/// <summary>
/// comment for dummy type
/// </summary>
public class Dummy {}
/// <summary>
/// comment for delegate type
/// </summary>
public delegate void MyDelegate (object o, EventArgs e);
/// <summary>
/// description for class Test
/// </summary>
public class Test
{
/// comment for const declaration
const string Constant = "CONSTANT STRING";
/// comment for public field
public string BadPublicField;
/// comment for private field
private string PrivateField;
/// comment for public property
public string PublicProperty {
/// comment for private property getter
get { return null; }
}
/// comment for private property
private string PrivateProperty {
get { return null; }
/// comment for private property setter
set { }
}
int x;
/// public event EventHandler MyEvent ;-)
public event EventHandler MyEvent;
int y;
/// here is a documentation!!!
public static void Foo ()
{
}
/// here is a documentation with parameters
public static void Foo (long l, Test t, System.Collections.ArrayList al)
{
}
/// comment for indexer
public string this [int i] {
get { return null; }
}
/// comment for indexer wit multiple parameters
public string this [int i, Test t] {
get { return null; }
}
/// <summary>
/// comment for unary operator
/// </summary>
public static bool operator ! (Test t)
{
return false;
}
/// <summary>
/// comment for binary operator
/// </summary>
public static int operator + (Test t, int b)
{
return b;
}
/// comment for destructor
~Test ()
{
}
/// comment for .ctor()
public Test ()
{
}
/// comment for .ctor(string arg, string [] args)
public Test (string arg, string [] args)
{
}
/// comment for internal class
public class InternalClass
{
}
/// comment for internal struct
public struct InternalStruct
{
}
}
}
|