XML comments

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Saso Zagoranski

    #1

    XML comments

    Hi!

    I have a question about XML comments included in VS. net.

    Let's say I have a project in a solution. And this project has a class with
    some methods:

    class MyClass
    {

    /// <summary>...</summary>
    /// <param name="param1"> parameter1</param>
    /// <returns> some string </returns>
    public string MyMethod(string param1)

    {

    }

    public void TestMethod()
    {
    }
    }

    If I write this.MyMethod while in MyClass VS shows me the comments I have
    written...
    but if I call MyClass.MyMetho d from another project IntelliSense only shows
    the type and name of the parameter, which is the same as if I didn't write
    comments at all...

    I would like to send my assemblies to other people as well and would like
    them to read the comments so they would know what each parameter does.

    How can I fix this? Do I have to use another tag instead of "param"?

    thanks,
    saso


  • Miha Markic

    #2
    Re: XML comments

    Hi Saso,

    Intellisense pulls information out of assemblyname.xm l file (which should
    reside near dll file).
    Include that xml file and intellisense will happily shows the info.
    --
    Miha Markic - RightHand .NET consulting & development
    miha at rthand com
    www.rhand.com

    "Saso Zagoranski" <saso.zagoransk i@guest.arnes.s i> wrote in message
    news:bs3quu$4lq $1@planja.arnes .si...[color=blue]
    > Hi!
    >
    > I have a question about XML comments included in VS. net.
    >
    > Let's say I have a project in a solution. And this project has a class[/color]
    with[color=blue]
    > some methods:
    >
    > class MyClass
    > {
    >
    > /// <summary>...</summary>
    > /// <param name="param1"> parameter1</param>
    > /// <returns> some string </returns>
    > public string MyMethod(string param1)
    >
    > {
    >
    > }
    >
    > public void TestMethod()
    > {
    > }
    > }
    >
    > If I write this.MyMethod while in MyClass VS shows me the comments I have
    > written...
    > but if I call MyClass.MyMetho d from another project IntelliSense only[/color]
    shows[color=blue]
    > the type and name of the parameter, which is the same as if I didn't write
    > comments at all...
    >
    > I would like to send my assemblies to other people as well and would like
    > them to read the comments so they would know what each parameter does.
    >
    > How can I fix this? Do I have to use another tag instead of "param"?
    >
    > thanks,
    > saso
    >
    >[/color]


    Comment

    Working...