Function definition tips in class or assembly????

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Serge Calderara

    #1

    Function definition tips in class or assembly????

    dear all,

    when I use classes function from framework, I could see a
    small tooltips wich is showing parameters to pass to the
    function but in addition a brief derscription of each.

    When doing my own function, is there a way to display as
    well description of each parameters when implementing that
    function?

    thanks
    regards
  • Jon Skeet

    #2
    Re: Function definition tips in class or assembly????

    Serge Calderara <serge.calderar a@maillefer.net > wrote:[color=blue]
    > when I use classes function from framework, I could see a
    > small tooltips wich is showing parameters to pass to the
    > function but in addition a brief derscription of each.
    >
    > When doing my own function, is there a way to display as
    > well description of each parameters when implementing that
    > function?[/color]

    If you're writing in C#, you can add XML documentation to the methods
    etc - and within that XML documentation you can describe the parameters
    using the <param> element.

    --
    Jon Skeet - <skeet@pobox.co m>
    Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

    If replying to the group, please do not mail me too

    Comment

    • Rob Epstein

      #3
      Re: Function definition tips in class or assembly????

      To follow up on John's spot on comment, above the function you wish to
      document simply type "///". This will cause VS.NET to put the framework
      of tags required for building complete documentation that can be used by
      VS.NET for intellityping. You will also need to go into your project
      properties and under Configuration Properties>Buil d specify a value for
      XML Documentation File. If my project name is TestProject, then I would
      set XML Documentation File to \bin\Debug\Test Project.xml. You then
      distribute the XML file to developers who will be using your namespace.
      If the XML file is in the same directory as the DLL then VS.NET will
      show them the comments you added to the functions.

      Hope that makes sense.
      Rob Epstein
      Sr Developer
      Auctionworks, Inc.
      "Nothing's impossible until proven so" - Me

      Serge Calderara wrote:
      [color=blue]
      > dear all,
      >
      > when I use classes function from framework, I could see a
      > small tooltips wich is showing parameters to pass to the
      > function but in addition a brief derscription of each.
      >
      > When doing my own function, is there a way to display as
      > well description of each parameters when implementing that
      > function?
      >
      > thanks
      > regards[/color]

      Comment

      • calderara serge

        #4
        Re: Function definition tips in class or assembly????

        Unfortunatly I am using Visual basic.
        is there other way?





        *** Sent via Developersdex http://www.developersdex.com ***
        Don't just participate in USENET...get rewarded for it!

        Comment

        • Jon Skeet

          #5
          Re: Function definition tips in class or assembly????

          calderara serge <serge.calderar a@maillefer.net > wrote:[color=blue]
          > Unfortunatly I am using Visual basic.
          > is there other way?[/color]

          Search for
          VB.NET XML documentation
          on Google - there are lots of hits. I don't know if any of them plug
          into VS.NET though.

          --
          Jon Skeet - <skeet@pobox.co m>
          Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

          If replying to the group, please do not mail me too

          Comment

          Working...