using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; namespace TestNamespace { /// /// Tests whether sandcastle can handle all c# tags as defined at http://msdn2.microsoft.com/en-us/library/5ast78ax.aspx. /// Comments of method "Increment (int step)" include almost all tags. /// Method "Swap" is used to test generics tags, such as "typeparam". /// /// [Serializable()] public class StoredNumber { /// Initializes the stored number class with a starting value. public StoredNumber(int value) { number = value; } private int number; /// /// This method is just for testing right now. It might be removed in the near future /// public void PreliminaryTest() { } /// /// test overlads tag /// public void Dec() { number--; } /// /// dec by a specified step /// /// public void Dec(int step) { number -= step; } /// Increment method incriments the stored number by one. /// /// note description here /// /// /// public void Increment() { number++; } /// Increment method incriments the stored number by a specified . /// /// /// Item 1. /// /// /// Item 2. /// /// /// see /// seealso /// /// /// You may have some additional information about this class. /// /// This sample shows how to call the GetZero method. /// /// class TestClass /// { /// static int Main() /// { /// return GetZero(); /// } /// } /// /// /// /// Thrown when... /// specified step /// Everyone can access this method. /// Returns nothing /// The Name property gets/sets the _name data member. public void Increment(int step) { number = number + step; } /// /// Swap data of type /// /// left to swap /// right to swap /// The element type to swap public void Swap(ref T lhs, ref T rhs) { T temp; temp = lhs; lhs = rhs; rhs = temp; } /// Gets the stored number. public int Value { get { return (number); } } private int _myProp; /// ///see as reference /// public int MyProp { get { return _myProp; } set { _myProp = value; } } } }