<see> tag: how to access a constructor?

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

    <see> tag: how to access a constructor?

    What I have to write in the <see> tag
    in order to access the constructor of a class?

    E.g.: to access the constructor of a class MyClass
    I try <see cref="MyClass.M yClass"/>
    but it does not work.

    I try also <see cref="MyClass.# ctor"/> but it fails also.

    What I have to write?

    Thanks.

    - Dario

  • Grant Richins [MS]

    #2
    Re: &lt;see&gt; tag: how to access a constructor?

    <see cref="MyClass() "/>

    --
    --Grant
    This posting is provided "AS IS" with no warranties, and confers no rights.


    Comment

    • Eric Newton

      #3
      Re: &lt;see&gt; tag: how to access a constructor?

      maybe _ctor instead of #ctor?

      this is an interesting question

      --
      Eric Newton
      C#/ASP Application Developer
      eric@cc.ensoft-software.com [remove the first "CC."]

      "Dario" <dario@despamme d.com> wrote in message
      news:bog38b$o65 $1@fata.cs.inte rbusiness.it...[color=blue]
      > What I have to write in the <see> tag
      > in order to access the constructor of a class?
      >
      > E.g.: to access the constructor of a class MyClass
      > I try <see cref="MyClass.M yClass"/>
      > but it does not work.
      >
      > I try also <see cref="MyClass.# ctor"/> but it fails also.
      >
      > What I have to write?
      >
      > Thanks.
      >
      > - Dario
      >[/color]


      Comment

      • Grant Richins [MS]

        #4
        Re: &lt;see&gt; tag: how to access a constructor?

        Noe, you just need to disambiguate between the class and the method that
        share a name by adding parenthesis:

        <see cref="MyClass() ">

        --
        Grant Richins, C# Compiler Team
        This posting is provided "AS IS" with no warranties, and confers no rights.
        Use of included script samples are subject to the terms specified at
        Use these online forms to report copyright and trademark infringement to Microsoft Legal. Infringement notices must comply with the Digital Millennium Copyright Act.


        Comment

        Working...