Bill

I think what your asking is how do you know what function within your class
matches the signature of the delegate that is the actual event. I too must
be missing something obvious as it doesn't seem too intuitive to me. (I
think it's something to do with case sensitivity!) but here's what I do
within the Object browser. 

Browse: Selected Components add the assembly with the component with the
customise button - then manually drill down until you find your class with
the event and bingo when you select the event the member info has the info
you need. I haven't tried this with COM interop assemblies though.

anybody figured a better way? I then have to reselect Active project for
everything else to work again.

R.



-----Original Message-----
From: Bill Schmidt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 2 May 2002 4:19
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] How to determine delegate type in C#


Thanks, Drew and Mattias.  Both of you said the same thing, but neither of
you said it in a way I could immediately understand.

For the archives, the key thing (and apparently the only way to do this) is
to type a "." before the "+=".  In other words, if I type
    this.cboName.
Intellisense shows a list of members (including events), and the tooltip
(or object browser) for the event shows the appropriate delegate type.

Once I have typed the "+=", it is too late to get the information I need.

Bill

On Wed, 1 May 2002 19:55:35 +0200, Mattias =?iso-8859-1?Q?Sj=F6gren?=
<[EMAIL PROTECTED]> wrote:

>Bill,
>
>>But how can I figure out what goes after the "new" keyword?
>
>It shows in the tooltip for the event in the IntelliSense list.
>
>After you have typed in SelectedIndexChanged, you can also right-click and
>select Go To Definition (or press F12), which will bring you to the Object
>Browser, where you also can see the delegate type.
>
>
>Mattias
>
>===
>Mattias Sjögren
>[EMAIL PROTECTED]
>
>You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
>subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.


**********************************************************************"
This correspondence is for the named person's use only. It may
contain confidential or legally privileged information or both. "
No confidentiality or privilege is waived or lost by any "
mistransmission.  If you receive this correspondence in error, please
immediately delete it from your system and notify the sender.  You 
must not disclose, copy or rely on any part of this correspondence 
if you are not the intended recipient. 

Any views expressed in this message are those of the individual sender,
except where the sender expressly, and with authority, states them to
be the views of Vodafone.

This email has been checked for viruses.
**********************************************************************************************

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to