Results 1 to 5 of 5

Thread: Object Browser - Can one do this?

  1. #1

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Object Browser - Can one do this?

    VS comes with a great tool looking at say a SDK, showing namespaces, classes, methods, etc, etc, nl. The Object Browser.

    Sometimes one get to use an SDK of which the developer did not bother to document and the Object browser will show you nothing but say, a specific method's signature (access modifier, name, input params, return value).

    So one do some research, and figure out what the specific method do, but you would like to document this information.

    Wouldn't it be cool, if one could add your own "custom comments" to an object? Or is there another way or tool for something like this?

    What I currently do is create a word doc., documenting the SDK, and fill in comments, sample code, etc as I go along. Would be nice if one could actually do these in VS.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Re: Object Browser - Can one do this?

    You can. Document your code using
    Code:
    /// <summary>
    /// 
    /// </summary>
    above a method or declaration, fill in some comments and then click Tools->Build Comment Web Pages.

    The IDE will do the rest.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Object Browser - Can one do this?

    I guess I did not make myself very clear.

    I was refering to dll's of which you do not have the source.

    You add & reference the dll in your code, and view what is available in object browser.

    I would like to be able to add my own comments, seeing many functions are not documented.

    Just for my own use on my local machine.
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  4. #4
    Hyperactive Member wolfrose's Avatar
    Join Date
    Aug 2002
    Location
    Indiana
    Posts
    309

    Re: Object Browser - Can one do this?

    Quote Originally Posted by crptcblade
    You can. Document your code using
    Code:
    /// <summary>
    /// 
    /// </summary>
    above a method or declaration, fill in some comments and then click Tools->Build Comment Web Pages.

    The IDE will do the rest.
    Can you do this with Visual Basic?

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Object Browser - Can one do this?

    Quote Originally Posted by wolfrose
    Can you do this with Visual Basic?
    This same functionality is native to VB.NET 2005 but not previous versions. There is an add-in for VS.NET 2003 (I'm not sure about 2002) that adds this functionality:

    VBCommenter

    Some folks say that they've had issues with it but I've been using it for ages and never had a problem.

    When you compile your projects, VB.NET or C#, the comments are rolled up into an XML file. You can use tools like NDoc, which is free, to generate a CHM file from that XML to give you documentation for your assemblies that resembles MSDN. I did just that with my compression library, which is wriiten in VB.NET and includes CHM documentation.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width