using System; namespace DocsByReflectionDemo { /// /// An example C# class /// /// /// This class illustrates how a class can be marked up with inline C# comments /// class SomeExampleClass { /// /// The contructor for the class /// public SomeExampleClass() { } /// /// Calculates the square of an integer /// /// /// The number to generate the square of /// The square of the parameter static public int Square(int param) { return param * param; } /// /// A function that does very little /// /// A string containing "Hello World" public string SimpleFunction() { return "HelloWorld"; } /// /// A method that joins two strings /// /// The first string /// The second string /// The strings combined static public string AnotherMethod(string input0, string input1) { return (input0 + input1).ToLower(); } /// /// An example of a property /// public int ExampleProperty { get { return somePrivateVar; } set { somePrivateVar = value; } } private int somePrivateVar; /// /// An example public field /// public int anExampleField = 99; } }