473,695 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2231
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*******@hotm ail.com> wrote in message
news:ud******** *****@TK2MSFTNG P10.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********@dis cussion.microso ft.com> escribió en el
mensaje news:O2******** ******@TK2MSFTN GP09.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*******@hotm ail.com> wrote in message
news:ud******** *****@TK2MSFTNG P10.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)(s ee 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******** ******@TK2MSFTN GP09.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)(s ee 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********@dis cussions.micros oft.com> wrote in message
news:O1******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP09.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)(s ee 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.c om> wrote in message
news:uI******** ******@TK2MSFTN GP12.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*******@hotm ail.com> wrote in
news:ud******** *****@TK2MSFTNG P10.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 (EditorBrowsabl eState.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
4506
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 functions I have 2 sub functions under each("Add Job", "View Jobs" and "Add User", "View Users"). I have theses subfunctions grouped in a TabControl, so there are 2 TabControl objects on my main screen, each with 2 pages on. When the user...
0
953
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 like to integrate visual studio intelisense in the textbox. has anybody an idea how to integrate the visual studio intelisense into a common system.windows.forms.textBox
6
3009
by: Alex Sedow | last post by:
Example 1 interface I { string ToString(); } public class C : I { public void f() {
0
1003
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 \ pages \ controls \ add) and they work ok with my prefixes, but Intelisense doesn't. Is there any way to make intelisense work in XHTML source for my custom server controls in VS 2005?
17
1520
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 converted value in Dollar for example... Well, I might do this in 2 ways, as below: 1) I create a method like this: double ConvertValue (double OriginalValue) { // here I compute the value
0
1101
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 reference this project in my C# application, i dont seee these comments in the intelisense as well as the Assembly's (C++/CLI project) Metadata Do i need to do any project settings while building my C++/CLI project for the comments to be visible to...
5
1895
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(); TheObject.Dictionary<string, string= new Dictionary<string, string>(); .... } The first line (TheObject instance = new TheObject();) doesn't get
0
807
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 parameters as user is pressing ','. I was thinking maybe about an intelisense helper class and some events. Does such thing exist? Best Regards PK
1
1765
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 overloads of a method. It compiles fine. We have a .Net 2.0 VB Website project that was originally a 1.1 project. When a reference to the dll is added to the website, only 9
0
8623
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8562
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8830
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8820
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7655
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6488
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2997
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2265
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.