|
zaterdag 27 augustus 2005 |
Let's say that I want to handle the RowDeleting event of a Strong Typed DataTable. And I want to handle the event in the Strong Typed DataTable Class itself. In VB I just go to the code window of the DataTable and via the DropDowns (Objects and Events) I create a handler. In C# no such thing can be done!!!! Looking with Reflector to the generated code of a VB project (Partial class merged with AutoGenerated code) I can see that the code for adding an EventHandler is put in the constructor of the DataTable. I could do this also in C# in the AutoGenerated code, but this would be lost if the class got regenerated.
8:49:35 PM
|
|
© Copyright 2005 Hannes 'Shorty' Decorte.
|
|
|