1 // Compiler options: -doc:xml-022.xml
3 // Combined tests (for detecting incorrect markup targeting).
8 /// xml comment is not allowed here.
17 another documentation style (Java-mimic)
19 public static void Foo ()
21 /// here is an extraneous comment
24 public static void Main ()
29 /// testing indentation <summary> test test ;-)
30 /// comment for struct
32 public struct StructTest
37 /// comment for interface
39 public interface InterfaceTest
44 /// comment for enum type
49 /// comment for enum field
56 /// comment for dummy type
61 /// comment for delegate type
63 public delegate void MyDelegate (object o
, EventArgs e
);
66 /// description for class Test
70 /// comment for const declaration
71 const string Constant
= "CONSTANT STRING";
73 /// comment for public field
74 public string BadPublicField
;
76 /// comment for private field
77 private string PrivateField
;
79 /// comment for public property
80 public string PublicProperty
{
81 /// comment for private property getter
85 /// comment for private property
86 private string PrivateProperty
{
88 /// comment for private property setter
94 /// public event EventHandler MyEvent ;-)
95 public event EventHandler MyEvent
;
99 /// here is a documentation!!!
100 public static void Foo ()
104 /// here is a documentation with parameters
105 public static void Foo (long l
, Test t
, System
.Collections
.ArrayList al
)
109 /// comment for indexer
110 public string this [int i
] {
114 /// comment for indexer wit multiple parameters
115 public string this [int i
, Test t
] {
120 /// comment for unary operator
122 public static bool operator ! (Test t
)
128 /// comment for binary operator
130 public static int operator + (Test t
, int b
)
135 /// comment for destructor
140 /// comment for .ctor()
145 /// comment for .ctor(string arg, string [] args)
146 public Test (string arg
, string [] args
)
150 /// comment for internal class
151 public class InternalClass
155 /// comment for internal struct
156 public struct InternalStruct