CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2009
    Posts
    8

    How to add Descriptions to properties and functions?

    I am trying to add some comments to my class properties and functions that will show in Visual Studio when I hover over a function name on the intellisense menues.

    public string DomainName
    {
    get
    {
    return DomainName_;
    }
    }

    Lets say I have the above property for a class, is it possible for me to add a description where the description shows up during the intellisense menus?

    Thanks!

  2. #2
    Join Date
    Oct 2004
    Location
    Rocket City
    Posts
    220

    Re: How to add Descriptions to properties and functions?

    In the blank line directly above "public string DomainName" just type three forward slashes (no spaces between) and Visual Studio will have you off and running.

  3. #3
    Join Date
    Mar 2009
    Posts
    8

    Re: How to add Descriptions to properties and functions?

    Quote Originally Posted by zips View Post
    In the blank line directly above "public string DomainName" just type three forward slashes (no spaces between) and Visual Studio will have you off and running.
    Thanks much!

  4. #4
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: How to add Descriptions to properties and functions?

    Don't forget to enable it by checking and filling "XML documentation file" on bottom of "Build" page of "Project Properties".
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

  5. #5
    Join Date
    Mar 2006
    Posts
    38

    Re: How to add Descriptions to properties and functions?

    thhhhhhanx good job

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

Featured