// Compiler options: -doc:xml-022.xml // // Combined tests (for detecting incorrect markup targeting). // using System; /// /// xml comment is not allowed here. /// namespace Testing { /// /// public class Test2 { /** another documentation style (Java-mimic) */ public static void Foo () { /// here is an extraneous comment } public static void Main () { } } /// testing indentation test test ;-) /// comment for struct /// public struct StructTest { } /// /// comment for interface /// public interface InterfaceTest { } /// /// comment for enum type /// public enum EnumTest { /// /// comment for enum field /// Foo, Bar, } /// /// comment for dummy type /// public class Dummy {} /// /// comment for delegate type /// public delegate void MyDelegate (object o, EventArgs e); /// /// description for class Test /// 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; } } /// /// comment for unary operator /// public static bool operator ! (Test t) { return false; } /// /// comment for binary operator /// 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 { } } }