Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to find the directory path for msi during installation Pin
Christian Graus16-Mar-09 20:18
protectorChristian Graus16-Mar-09 20:18 
QuestionC#.net, Globalization Pin
Yathish hatter16-Mar-09 18:32
Yathish hatter16-Mar-09 18:32 
AnswerRe: C#.net, Globalization Pin
Christian Graus16-Mar-09 18:40
protectorChristian Graus16-Mar-09 18:40 
QuestionChang color of particular string in Rich text Pin
Sajjad Leo16-Mar-09 18:29
Sajjad Leo16-Mar-09 18:29 
AnswerRe: Chang color of particular string in Rich text Pin
Xmen Real 16-Mar-09 20:55
professional Xmen Real 16-Mar-09 20:55 
Questionhow to upload excelworkbook dynamically using c# Pin
Mangesh Tomar16-Mar-09 18:25
Mangesh Tomar16-Mar-09 18:25 
QuestionHow to connect HTTPS server and download a file using C# , C# webclient Pin
Member 339828416-Mar-09 18:09
Member 339828416-Mar-09 18:09 
Questiondatagrid combobox windows Pin
sydney12316-Mar-09 17:43
sydney12316-Mar-09 17:43 
AnswerRe: datagrid combobox windows Pin
Xmen Real 16-Mar-09 20:30
professional Xmen Real 16-Mar-09 20:30 
QuestionHow to get MSIHANDLE Pin
Dracula Wang16-Mar-09 17:34
Dracula Wang16-Mar-09 17:34 
AnswerRe: How to get MSIHANDLE Pin
Christian Graus16-Mar-09 18:22
protectorChristian Graus16-Mar-09 18:22 
AnswerRe: How to get MSIHANDLE Pin
0x3c016-Mar-09 22:03
0x3c016-Mar-09 22:03 
QuestionAbsolute coordinates of a control or relative coordinates of the mouse Pin
User 58385216-Mar-09 17:01
User 58385216-Mar-09 17:01 
AnswerRe: Absolute coordinates of a control or relative coordinates of the mouse Pin
Christian Graus16-Mar-09 18:54
protectorChristian Graus16-Mar-09 18:54 
Questionupdate server DB from local Dataset via XML Pin
dingo1416-Mar-09 15:58
dingo1416-Mar-09 15:58 
AnswerRe: update server DB from local Dataset via XML Pin
Xmen Real 16-Mar-09 16:16
professional Xmen Real 16-Mar-09 16:16 
GeneralRe: update server DB from local Dataset via XML Pin
dingo1416-Mar-09 16:43
dingo1416-Mar-09 16:43 
GeneralRe: update server DB from local Dataset via XML Pin
Xmen Real 16-Mar-09 22:47
professional Xmen Real 16-Mar-09 22:47 
AnswerRe: update server DB from local Dataset via XML Pin
dingo1417-Mar-09 9:01
dingo1417-Mar-09 9:01 
QuestionChange my O2 Zinc to COM Port Pin
Aghosh Babu16-Mar-09 15:25
Aghosh Babu16-Mar-09 15:25 
QuestionDSOFile Problem.....??? (Summery Info) [modified] Pin
S K Y16-Mar-09 15:04
S K Y16-Mar-09 15:04 
AnswerRe: DSOFile Problem.....??? (Summery Info) Pin
Mycroft Holmes16-Mar-09 15:56
professionalMycroft Holmes16-Mar-09 15:56 
QuestionThreading Question - Object in AsyncCompletedEventArgs Pin
Jammer16-Mar-09 14:05
Jammer16-Mar-09 14:05 
QuestionButton to scroll MDI Parent FOrm [modified] Pin
jameschristianii16-Mar-09 11:54
jameschristianii16-Mar-09 11:54 
QuestionObject Wrapping and Event Subscription Pin
Jammer16-Mar-09 11:28
Jammer16-Mar-09 11:28 
Hi All,

I'm just wrapping up some functionality in a class that uses some third party components under the hood. My wrapper object by default subscribes to some events on the third party components and forwards them on to consumers of my wrapper class.

In general I would expect consumers to subscribe to these events most of the time, however, I can't always assume that and I also want to optimise my wrapper. What is the general consensus on coding around this? At the moment I always subscribe to the third party events and then each time one of these events fires I check to see if the event handler is null before forwarding on the event.

Is there a better pattern for this?


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.