Hide methods for Intelisense.

  • Thread starter Thread starter Flare
  • Start date Start date
F

Flare

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
 
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.
 
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 said:
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.

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

Mark
 
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?
 
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
 
Is the conclussion that i cant remove the 2 methods since they are inherited
automaticly from object?

reagards
Anders
 
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

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

[EditorBrowsable(EditorBrowsableState.Never)]
 
Back
Top