Click here to Skip to main content
15,887,854 members
Home / Discussions / C#
   

C#

 
AnswerRe: Can anyone recommend a book for writing custom control in C#? Pin
Alastair Stell29-Aug-02 4:07
Alastair Stell29-Aug-02 4:07 
GeneralTree/List Hybrids Pin
candan28-Aug-02 14:46
professionalcandan28-Aug-02 14:46 
GeneralRe: Tree/List Hybrids Pin
Stephane Rodriguez.29-Aug-02 1:34
Stephane Rodriguez.29-Aug-02 1:34 
QuestionHow do you unsubscribe to an event? Pin
Rodney S. Foley28-Aug-02 14:18
Rodney S. Foley28-Aug-02 14:18 
AnswerRe: How do you unsubscribe to an event? Pin
Paul Riley28-Aug-02 18:17
Paul Riley28-Aug-02 18:17 
GeneralRe: How do you unsubscribe to an event? Pin
Rodney S. Foley28-Aug-02 19:14
Rodney S. Foley28-Aug-02 19:14 
GeneralRe: How do you unsubscribe to an event? Pin
Paul Riley28-Aug-02 19:25
Paul Riley28-Aug-02 19:25 
GeneralRe: How do you unsubscribe to an event? Pin
Rodney S. Foley28-Aug-02 19:50
Rodney S. Foley28-Aug-02 19:50 
I am not clear on the problem I was gripping about that is the same problem "they" ran into.
Because if a solution is logical, I would only grip about it's extra steps or complexity over a simpler solution. You may be talking about the example I gave in the original post of how I thought it may work, and how I gripped about it have extra steps. If it was the solution it would have been at least a logical solution.

They could have done away with EventHanlders all together, and just have the event use the += operation on the method directly, and -= on the method directly.
C#
public event OnEvent(object, EventArgs);

/ ... /

private void eventHandler(object sender, EventArgs e) {  / ... / }

/ ... /

OnEvent += eventHandler;

/ ... /

OnEvent -= eventHandler;
It gains the exact same results with out all the HandlerObjects in the framework, and at least makes more logical sense as to how to use it. I still have not seen anything better and more robust that the way Java handles events.

Regardless its very easy to go around and around on subjects like these. Since nothing we can say can change the fact that the way it is, is the way it is. I easily adjust to stupid and illogical things, all programming languages have there faults.

It is my opinion we are kick the crap out of a dead horse here, I would recommend we just leave it be that no matter how much justification is provided I will not accept the fact that it is the way it is, I will just have to deal with it, and that no matter how much I grip about it and say how much it sucks, and this way or that way is better it will not change the fact that that way or this will will never come to be and that I have to deal with it.

Aalst
GeneralRe: How do you unsubscribe to an event? Pin
leppie28-Aug-02 22:02
leppie28-Aug-02 22:02 
Generalam i dreaming Pin
imran_rafique28-Aug-02 11:58
imran_rafique28-Aug-02 11:58 
GeneralRe: am i dreaming Pin
Rodney S. Foley28-Aug-02 14:46
Rodney S. Foley28-Aug-02 14:46 
GeneralRe: am i dreaming Pin
Nnamdi Onyeyiri28-Aug-02 21:48
Nnamdi Onyeyiri28-Aug-02 21:48 
GeneralRe: am i dreaming Pin
Paul Riley28-Aug-02 17:56
Paul Riley28-Aug-02 17:56 
GeneralRe: am i dreaming Pin
imran_rafique1-Sep-02 12:15
imran_rafique1-Sep-02 12:15 
GeneralRe: am i dreaming Pin
Paul Riley2-Sep-02 5:03
Paul Riley2-Sep-02 5:03 
GeneralRe: am i dreaming Pin
imran_rafique1-Sep-02 12:50
imran_rafique1-Sep-02 12:50 
Generalwho to use it Pin
imran_rafique28-Aug-02 11:22
imran_rafique28-Aug-02 11:22 
GeneralPropertySheet Pin
Mazdak28-Aug-02 9:49
Mazdak28-Aug-02 9:49 
Generalpassing System.Guid into mediaSeek.SetTimeFormat Pin
Jarrett Vance28-Aug-02 8:51
Jarrett Vance28-Aug-02 8:51 
GeneralASP.NET question Pin
User 988528-Aug-02 5:16
User 988528-Aug-02 5:16 
GeneralInterop reference problem... Pin
Ryan Cromwell28-Aug-02 4:48
Ryan Cromwell28-Aug-02 4:48 
QuestionHow to read Embedded Resource in Assembly (File) ? Pin
Chris Richner28-Aug-02 3:15
Chris Richner28-Aug-02 3:15 
AnswerRe: How to read Embedded Resource in Assembly (File) ? Pin
James T. Johnson28-Aug-02 6:31
James T. Johnson28-Aug-02 6:31 
GeneralImage field in database Pin
Mazdak28-Aug-02 3:05
Mazdak28-Aug-02 3:05 
GeneralRe: Image field in database Pin
Nnamdi Onyeyiri28-Aug-02 3:10
Nnamdi Onyeyiri28-Aug-02 3:10 

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.