473,327 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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
Nov 15 '05 #1
8 2209
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" <dc*******@hotmail.com> wrote in message
news:ud*************@TK2MSFTNGP10.phx.gbl...
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

Nov 15 '05 #2
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" <di********@discussion.microsoft.com> escribió en el
mensaje news:O2**************@TK2MSFTNGP09.phx.gbl...
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" <dc*******@hotmail.com> wrote in message
news:ud*************@TK2MSFTNGP10.phx.gbl...
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


Nov 15 '05 #3
news.microsoft.com wrote:
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
Nov 15 '05 #4
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:ug**************@TK2MSFTNGP09.phx.gbl...
news.microsoft.com wrote:
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

Nov 15 '05 #5
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" <an********@discussions.microsoft.com> wrote in message
news:O1**************@TK2MSFTNGP12.phx.gbl...
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:ug**************@TK2MSFTNGP09.phx.gbl...
news.microsoft.com wrote:
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


Nov 15 '05 #6
Is the conclussion that i cant remove the 2 methods since they are inherited
automaticly from object?

reagards
Anders

Nov 15 '05 #7
Exactly.

"Flare" <pl*@askforit.com> wrote in message
news:uI**************@TK2MSFTNGP12.phx.gbl...
Is the conclussion that i cant remove the 2 methods since they are inherited automaticly from object?

reagards
Anders

Nov 15 '05 #8
"Flare" <dc*******@hotmail.com> wrote in
news:ud*************@TK2MSFTNGP10.phx.gbl:
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)]
--
best regards

Peter Koen
-----------------------------------
MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
http://www.kema.at
Nov 15 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Steve | last post by:
Visual Studio 2003 C# Windows: I have a tree view control as my main menu control down the left side of my application. This has 2 Parent Nodes on it (Jobs and Employees). beneath these 2 main...
0
by: ditwal001 | last post by:
hi folks i am building up a c# code generater. the c# code is deposited in the sql server database. the code is indicated in a textbox for treatment. in order to receive to more comfort i would...
6
by: Alex Sedow | last post by:
Example 1 interface I { string ToString(); } public class C : I { public void f() {
0
by: Natan Vivo | last post by:
Hi. I have a Solution here that contains 3 DLLs and a WebSite. In one of the dlls I have some custom server controls (extending Control mostly). I have mapped them in web.config (system.web \...
17
by: Bruce One | last post by:
Lets consider a class called Currency. This class must be the responsible for taking care of all calculations over currency exchanges, in such a way that I pass values in Euros and it returns the...
0
by: Subodh | last post by:
Hi All, I am creating a C++/CLI project which will be consumber by C# application. I have added comments for my properties/Methods in my C++/CLI project using .net XML tags, but when i...
5
by: Andy B | last post by:
I am trying to figure out how to make an object instance available for all methods of a class. I tried to do something like this: public class test { TheObject Instance = new TheObject();...
0
by: =?iso-8859-2?Q?Piotr_Ko=B3odziej?= | last post by:
Hi I am writing VS add-in. I basicaly need to detect when user is pressing '(' char and intelisense is getting parameter information for a method. later I'll need to detect .net types of...
1
by: Aamir Ghanchi | last post by:
Hi, All the methods from a dll class are not showing up in the object browser/intelisense when the dll reference is added to a website project. Details: The dll is a C# project that has 15...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.