Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How do I extract the filename, its path, last modified file time as well as its name of the classes n method from a source code file. I need to extract it and then place it in a xml or html file format n display it as documentation.

 

Please reply

 

Thanks

Posted

Check out the System.IO.File class and the System.IO.Path class for the file name, path, and possibly last modified time.

 

If you are using a version control system, that would be a great way to get the actual last modified time.

 

Classes and methods can be taken from the XML file generated by the C# compiler in .Net 1.1/2.0 and VB compiler in 2.0. There is a tool to parse the info for VB .Net 1.1. There's a link on this forum somewhere to help with that.

 

Another option would be to check out the NDoc project.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...