Click here to Skip to main content
15,919,749 members
Home / Discussions / C#
   

C#

 
AnswerRe: Adding EventHandler Pin
MidwestLimey19-Jul-07 11:08
professionalMidwestLimey19-Jul-07 11:08 
In the first case the compiler type checks that Bar.OnSomeEvent has the same delegate type as SomeEvent and inserts the Delegate.Combine call with the inferred delegate type.
In the second, you're doing part of the compilers work yourself by explicitly telling it the delegate type.
The msil code for both will be identical.



I'm largely language agnostic

After a while they all bug me D'Oh! | :doh:


GeneralRe: Adding EventHandler Pin
mmfranke19-Jul-07 11:15
mmfranke19-Jul-07 11:15 
GeneralRe: Adding EventHandler Pin
MidwestLimey19-Jul-07 11:16
professionalMidwestLimey19-Jul-07 11:16 
GeneralRe: Adding EventHandler Pin
Luc Pattyn19-Jul-07 11:38
sitebuilderLuc Pattyn19-Jul-07 11:38 
QuestionHow do applications get permission to create keys hkey_classes_root? Pin
Sepharo19-Jul-07 9:58
Sepharo19-Jul-07 9:58 
QuestionCreating Tools > Options window Pin
student_rhr19-Jul-07 9:47
student_rhr19-Jul-07 9:47 
AnswerRe: Creating Tools > Options window Pin
Paul Conrad19-Jul-07 10:41
professionalPaul Conrad19-Jul-07 10:41 
AnswerRe: Creating Tools > Options window Pin
BoneSoft19-Jul-07 10:45
BoneSoft19-Jul-07 10:45 
GeneralRe: Creating Tools > Options window Pin
student_rhr20-Jul-07 3:16
student_rhr20-Jul-07 3:16 
GeneralRe: Creating Tools > Options window Pin
BoneSoft20-Jul-07 3:42
BoneSoft20-Jul-07 3:42 
QuestionHow Search Engine Works Pin
monafr8119-Jul-07 9:14
monafr8119-Jul-07 9:14 
JokeRe: How Search Engine Works Pin
BoneSoft19-Jul-07 9:17
BoneSoft19-Jul-07 9:17 
GeneralRe: How Search Engine Works Pin
Paul Conrad19-Jul-07 9:21
professionalPaul Conrad19-Jul-07 9:21 
GeneralRe: How Search Engine Works Pin
BoneSoft19-Jul-07 10:35
BoneSoft19-Jul-07 10:35 
GeneralRe: How Search Engine Works Pin
Paul Conrad19-Jul-07 10:39
professionalPaul Conrad19-Jul-07 10:39 
GeneralRe: How Search Engine Works Pin
BoneSoft19-Jul-07 10:51
BoneSoft19-Jul-07 10:51 
JokeRe: How Search Engine Works Pin
Luc Pattyn19-Jul-07 9:22
sitebuilderLuc Pattyn19-Jul-07 9:22 
GeneralRe: How Search Engine Works Pin
monafr8119-Jul-07 9:26
monafr8119-Jul-07 9:26 
GeneralRe: How Search Engine Works Pin
Larantz19-Jul-07 9:32
Larantz19-Jul-07 9:32 
GeneralRe: How Search Engine Works Pin
monafr8119-Jul-07 9:36
monafr8119-Jul-07 9:36 
GeneralRe: How Search Engine Works Pin
BoneSoft19-Jul-07 10:37
BoneSoft19-Jul-07 10:37 
GeneralRe: How Search Engine Works Pin
Vasudevan Deepak Kumar19-Jul-07 18:41
Vasudevan Deepak Kumar19-Jul-07 18:41 
GeneralRe: How Search Engine Works Pin
BoneSoft20-Jul-07 6:11
BoneSoft20-Jul-07 6:11 
GeneralRe: How Search Engine Works Pin
Member 1354794410-Dec-17 22:43
Member 1354794410-Dec-17 22:43 
AnswerRe: How Search Engine Works Pin
DavidNohejl19-Jul-07 11:00
DavidNohejl19-Jul-07 11:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.