Posted By

LeeRJohnson on 02/18/08


Tagged

xml c comment example tag documentation Sharp


Versions (?)

example tag XML C Sharp Documentation comment


 / Published in: C#
 

URL: http://msdn2.microsoft.com/en-us/library/9w4cf933(VS.80).aspx

  1. // compile with: /doc:DocFileName.xml
  2.  
  3. /// text for class TestClass
  4. public class TestClass
  5. {
  6. /// <summary>
  7. /// The GetZero method.
  8. /// </summary>
  9. /// <example> This sample shows how to call the GetZero method.
  10. /// <code>
  11. /// class TestClass
  12. /// {
  13. /// static int Main()
  14. /// {
  15. /// return GetZero();
  16. /// }
  17. /// }
  18. /// </code>
  19. /// </example>
  20. public static int GetZero()
  21. {
  22. return 0;
  23. }
  24.  
  25. /// text for Main
  26. static void Main()
  27. {
  28. }
  29. }

Report this snippet  

You need to login to post a comment.