Hide methods for Intelisense.

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

    #1

    Hide methods for Intelisense.

    Hi

    Im creating an Assembli with serval class's wich only contents is static
    properties. (Im using this class to access global Connections string
    and.etc.

    Is all good. But to simplify th euse of this assmbly i want to hide the two
    members .

    Equals
    ReferenceEquals

    Theses popup in Intelisense when I access the class. Can I do this with an
    attribute or is it impossible.

    Regards
    Anders, DK


  • news.microsoft.com

    #2
    Re: Hide methods for Intelisense.

    Intellisense is keyed off the XML documentation <summary> </summary> tags,
    just dont include them for those methods, if you want them hidden from the
    caller, make them private.


    "Flare" <dct_flare@hotm ail.com> wrote in message
    news:udJjOp9lDH A.988@TK2MSFTNG P10.phx.gbl...[color=blue]
    > Hi
    >
    > Im creating an Assembli with serval class's wich only contents is static
    > properties. (Im using this class to access global Connections string
    > and.etc.
    >
    > Is all good. But to simplify th euse of this assmbly i want to hide the[/color]
    two[color=blue]
    > members .
    >
    > Equals
    > ReferenceEquals
    >
    > Theses popup in Intelisense when I access the class. Can I do this with an
    > attribute or is it impossible.
    >
    > Regards
    > Anders, DK
    >
    >[/color]


    Comment

    • Osvaldo Bisignano

      #3
      Re: Hide methods for Intelisense.

      I think Equals and ReferenceEquals are inherited methods (maybe from the
      marshalbyref abastract class)

      I don't know exactly, but i'd try overriding this methods (if they are
      overridable/virtual) and setting an attribute.
      look first if they are overriable. then look for an adecuate attribute.

      regards,osvaldo


      "news.microsoft .com" <discussion@dis cussion.microso ft.com> escribió en el
      mensaje news:O2FTOu9lDH A.1728@TK2MSFTN GP09.phx.gbl...[color=blue]
      > Intellisense is keyed off the XML documentation <summary> </summary> tags,
      > just dont include them for those methods, if you want them hidden from the
      > caller, make them private.
      >
      >
      > "Flare" <dct_flare@hotm ail.com> wrote in message
      > news:udJjOp9lDH A.988@TK2MSFTNG P10.phx.gbl...[color=green]
      > > Hi
      > >
      > > Im creating an Assembli with serval class's wich only contents is static
      > > properties. (Im using this class to access global Connections string
      > > and.etc.
      > >
      > > Is all good. But to simplify th euse of this assmbly i want to hide the[/color]
      > two[color=green]
      > > members .
      > >
      > > Equals
      > > ReferenceEquals
      > >
      > > Theses popup in Intelisense when I access the class. Can I do this with[/color][/color]
      an[color=blue][color=green]
      > > attribute or is it impossible.
      > >
      > > Regards
      > > Anders, DK
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Mark

        #4
        Re: Hide methods for Intelisense.

        news.microsoft. com wrote:
        [color=blue]
        > Intellisense is keyed off the XML documentation <summary> </summary>
        > tags, just dont include them for those methods, if you want them
        > hidden from the caller, make them private.[/color]

        Intellisense is keyed off the actual code (which is why you don't need
        xml documentation to get intellisense)(s ee vb.net).

        Mark

        Comment

        • anonymouse

          #5
          Re: Hide methods for Intelisense.

          Oh so I dont need to suppply <summary> it generates the documentation from
          its arse?

          Remarks
          The <summary> tag should be used to describe a type or a type member. Use
          <remarks> to add supplemental information to a type description.

          The text for the <summary> tag is the only source of information about the
          type in IntelliSense, and is also displayed in the Object Browser and in the
          Code Comment Web Report.

          Compile with /doc to process documentation comments to a file.



          So, which part of MSDN do you know better than?


          "Mark" <mark@somewhere > wrote in message
          news:ugrUt3$lDH A.2444@TK2MSFTN GP09.phx.gbl...[color=blue]
          > news.microsoft. com wrote:
          >[color=green]
          > > Intellisense is keyed off the XML documentation <summary> </summary>
          > > tags, just dont include them for those methods, if you want them
          > > hidden from the caller, make them private.[/color]
          >
          > Intellisense is keyed off the actual code (which is why you don't need
          > xml documentation to get intellisense)(s ee vb.net).
          >
          > Mark[/color]


          Comment

          • Michael Giagnocavo [MVP]

            #6
            Re: Hide methods for Intelisense.

            Intellisense uses both. If you don't have XML docs for it, it just shows
            you the members (which is not documentation). Intellisense can ADDITIONALLY
            show documentation, if provided.
            -mike
            MVP

            "anonymouse " <anonymouse@dis cussions.micros oft.com> wrote in message
            news:O1F0p$$lDH A.2012@TK2MSFTN GP12.phx.gbl...[color=blue]
            > Oh so I dont need to suppply <summary> it generates the documentation from
            > its arse?
            >
            > Remarks
            > The <summary> tag should be used to describe a type or a type member. Use
            > <remarks> to add supplemental information to a type description.
            >
            > The text for the <summary> tag is the only source of information about the
            > type in IntelliSense, and is also displayed in the Object Browser and in[/color]
            the[color=blue]
            > Code Comment Web Report.
            >
            > Compile with /doc to process documentation comments to a file.
            >
            >
            >
            > So, which part of MSDN do you know better than?
            >
            >
            > "Mark" <mark@somewhere > wrote in message
            > news:ugrUt3$lDH A.2444@TK2MSFTN GP09.phx.gbl...[color=green]
            > > news.microsoft. com wrote:
            > >[color=darkred]
            > > > Intellisense is keyed off the XML documentation <summary> </summary>
            > > > tags, just dont include them for those methods, if you want them
            > > > hidden from the caller, make them private.[/color]
            > >
            > > Intellisense is keyed off the actual code (which is why you don't need
            > > xml documentation to get intellisense)(s ee vb.net).
            > >
            > > Mark[/color]
            >
            >[/color]


            Comment

            • Flare

              #7
              Re: Hide methods for Intelisense.

              Is the conclussion that i cant remove the 2 methods since they are inherited
              automaticly from object?

              reagards
              Anders



              Comment

              • Michael Giagnocavo [MVP]

                #8
                Re: Hide methods for Intelisense.

                Exactly.

                "Flare" <plz@askforit.c om> wrote in message
                news:uIumKLBmDH A.2528@TK2MSFTN GP12.phx.gbl...[color=blue]
                > Is the conclussion that i cant remove the 2 methods since they are[/color]
                inherited[color=blue]
                > automaticly from object?
                >
                > reagards
                > Anders
                >
                >
                >[/color]


                Comment

                • Peter Koen

                  #9
                  Re: Hide methods for Intelisense.

                  "Flare" <dct_flare@hotm ail.com> wrote in
                  news:udJjOp9lDH A.988@TK2MSFTNG P10.phx.gbl:
                  [color=blue]
                  > Hi
                  >
                  > Im creating an Assembli with serval class's wich only contents is
                  > static properties. (Im using this class to access global Connections
                  > string and.etc.
                  >
                  > Is all good. But to simplify th euse of this assmbly i want to hide
                  > the two members .
                  >
                  > Equals
                  > ReferenceEquals
                  >
                  > Theses popup in Intelisense when I access the class. Can I do this
                  > with an attribute or is it impossible.
                  >
                  > Regards
                  > Anders, DK
                  >
                  >[/color]

                  Overwrite the members from the base class
                  and provide the EditorBrowsable Attribute:

                  [EditorBrowsable (EditorBrowsabl eState.Never)]


                  --
                  best regards

                  Peter Koen
                  -----------------------------------
                  MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS

                  Comment

                  Working...