Click here to Skip to main content
15,885,985 members
Home / Discussions / C#
   

C#

 
GeneralRe: read image in c# Pin
lieu_li8-Mar-12 16:21
lieu_li8-Mar-12 16:21 
GeneralRe: read image in c# Pin
OriginalGriff8-Mar-12 20:06
mveOriginalGriff8-Mar-12 20:06 
Questiontalking Pin
newlife2007-Mar-12 13:17
newlife2007-Mar-12 13:17 
AnswerRe: talking Pin
Bernhard Hiller7-Mar-12 20:26
Bernhard Hiller7-Mar-12 20:26 
Questionevent in c# Pin
tommmyyy1237-Mar-12 4:42
tommmyyy1237-Mar-12 4:42 
AnswerRe: event in c# Pin
PIEBALDconsult7-Mar-12 5:16
mvePIEBALDconsult7-Mar-12 5:16 
GeneralRe: event in c# Pin
tommmyyy1237-Mar-12 5:55
tommmyyy1237-Mar-12 5:55 
GeneralRe: event in c# PinPopular
GParkings7-Mar-12 6:11
GParkings7-Mar-12 6:11 
you don't.

think what you are trying to do here, you have a class called MyEvent which owns and exposes an event. That class is solely responsible for managing that event, other classes interacting with it are merely listeners

The only point at which an event being null should matter is if you are about to invoke it. The only thing that invokes an event is its owner class and therefore only MyEvent needs to care about SomeEvent being null.

Therefore if you want a console output for an attempt to invoke an event for which no event handler has been attached it should go in the OnSomeEvent method of the MyEvent class
Pedis ex oris
Quidquid latine dictum sit, altum sonatur

GeneralRe: event in c# Pin
PIEBALDconsult7-Mar-12 6:24
mvePIEBALDconsult7-Mar-12 6:24 
GeneralRe: event in c# Pin
tommmyyy1237-Mar-12 7:04
tommmyyy1237-Mar-12 7:04 
QuestionPlease See this Pin
Mohammed Owais7-Mar-12 3:20
professionalMohammed Owais7-Mar-12 3:20 
AnswerRe: Please See this Pin
BobJanova7-Mar-12 3:39
BobJanova7-Mar-12 3:39 
AnswerRe: Please See this Pin
Dave Kreskowiak7-Mar-12 3:43
mveDave Kreskowiak7-Mar-12 3:43 
Questionc# Pin
Member 87080197-Mar-12 2:15
Member 87080197-Mar-12 2:15 
AnswerRe: c# Pin
V.7-Mar-12 2:25
professionalV.7-Mar-12 2:25 
AnswerRe: c# Pin
PIEBALDconsult7-Mar-12 2:28
mvePIEBALDconsult7-Mar-12 2:28 
AnswerRe: c# PinPopular
OriginalGriff7-Mar-12 2:52
mveOriginalGriff7-Mar-12 2:52 
GeneralRe: c# Pin
V.7-Mar-12 3:48
professionalV.7-Mar-12 3:48 
GeneralRe: c# PinPopular
OriginalGriff7-Mar-12 4:30
mveOriginalGriff7-Mar-12 4:30 
GeneralRe: c# Pin
V.7-Mar-12 5:16
professionalV.7-Mar-12 5:16 
GeneralRe: c# Pin
PIEBALDconsult7-Mar-12 4:32
mvePIEBALDconsult7-Mar-12 4:32 
AnswerRe: c# Pin
GParkings7-Mar-12 6:17
GParkings7-Mar-12 6:17 
AnswerRe: c# Pin
Abhinav S7-Mar-12 21:04
Abhinav S7-Mar-12 21:04 
QuestionTest If Out Parameter has been assigned Pin
MarkyBoy7687-Mar-12 2:13
MarkyBoy7687-Mar-12 2:13 
AnswerRe: Test If Out Parameter has been assigned Pin
PIEBALDconsult7-Mar-12 2:33
mvePIEBALDconsult7-Mar-12 2:33 

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.