Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# Code Comments

C# Code Comments

Scheduled Pinned Locked Moved C#
csharpvisual-studiotoolsxmlhelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Patrick John Collins
    wrote on last edited by
    #1

    I'm sure many of you have experimented with the code commenting features in C#. For those of you who haven't it works like this - above a function you can place some code comments using a special identifier "///" in xml format, like this: /// /// Logs the user into the system /// /// User's name /// User's password /// Boolean value indicating success (true) or failure (false) /// User name or password was incorrect The C# compiler provides you with the option to generate an xml file containing all of these comments in a nicely structured format. VS.NET provides a utility to generate web pages from this xml file. These web pages are rather nice, and could be bundled into a .chm file for distribution. However, this tool doesn't generate pages of the same quality as msdn. The pages look pretty yukky and only certain info is included - for example exceptions are not shown, which is a problem as consumers need to know what exceptions might be thrown. So after that whole essay - does anybody know of a tool which can generate nice documentation (up to the standard of msdn), and then package that documentation automatically into .chm files? If not, would this be a valuable article? If so, would somebody be willing to collaborate with me on this effort? Cheers

    J 1 Reply Last reply
    0
    • P Patrick John Collins

      I'm sure many of you have experimented with the code commenting features in C#. For those of you who haven't it works like this - above a function you can place some code comments using a special identifier "///" in xml format, like this: /// /// Logs the user into the system /// /// User's name /// User's password /// Boolean value indicating success (true) or failure (false) /// User name or password was incorrect The C# compiler provides you with the option to generate an xml file containing all of these comments in a nicely structured format. VS.NET provides a utility to generate web pages from this xml file. These web pages are rather nice, and could be bundled into a .chm file for distribution. However, this tool doesn't generate pages of the same quality as msdn. The pages look pretty yukky and only certain info is included - for example exceptions are not shown, which is a problem as consumers need to know what exceptions might be thrown. So after that whole essay - does anybody know of a tool which can generate nice documentation (up to the standard of msdn), and then package that documentation automatically into .chm files? If not, would this be a valuable article? If so, would somebody be willing to collaborate with me on this effort? Cheers

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      Take a look at nDoc, it has an option to produce output almost exactly like MSDN :) James Simplicity Rules!

      N 1 Reply Last reply
      0
      • J James T Johnson

        Take a look at nDoc, it has an option to produce output almost exactly like MSDN :) James Simplicity Rules!

        N Offline
        N Offline
        Neil Van Note
        wrote on last edited by
        #3

        James! You don't know how much easier you have made my life; nDoc is EXACTLY (a good start anyway) what I was looking for... Thanks, Neil A. Van Note

        P 1 Reply Last reply
        0
        • N Neil Van Note

          James! You don't know how much easier you have made my life; nDoc is EXACTLY (a good start anyway) what I was looking for... Thanks, Neil A. Van Note

          P Offline
          P Offline
          Patrick John Collins
          wrote on last edited by
          #4

          >>nDoc is EXACTLY (a good start anyway) what I was looking for... I concur, thank you James! :) Is a society built on greed better than a society built on survival?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups