Click here to Skip to main content
15,921,113 members
Home / Discussions / C#
   

C#

 
GeneralRe: Date time format Pin
Dave Kreskowiak14-Jun-04 8:07
mveDave Kreskowiak14-Jun-04 8:07 
GeneralRe: Date time format Pin
Jon Sagara14-Jun-04 8:08
Jon Sagara14-Jun-04 8:08 
GeneralRe: Date time format Pin
Dave Kreskowiak14-Jun-04 9:00
mveDave Kreskowiak14-Jun-04 9:00 
GeneralCheckListBox - how to find out which items are checked Pin
tjawed13-Jun-04 23:36
tjawed13-Jun-04 23:36 
GeneralRe: CheckListBox - how to find out which items are checked Pin
Heath Stewart14-Jun-04 4:07
protectorHeath Stewart14-Jun-04 4:07 
Generalon c# delegates Pin
Asim N.13-Jun-04 23:14
Asim N.13-Jun-04 23:14 
GeneralRe: on c# delegates Pin
Serge Lobko-Lobanovsky14-Jun-04 2:11
Serge Lobko-Lobanovsky14-Jun-04 2:11 
GeneralRe: on c# delegates Pin
Heath Stewart14-Jun-04 4:05
protectorHeath Stewart14-Jun-04 4:05 
Yes you can, but as Serge mentioned, there are MulticastDelegates, which are used for events handlers. This allows you to combine delegates via Delegate.Combine. In .NET, actually, all delegates are treated as MulticastDelegates. I remember reading an article about its inclusion a few years ago.

If you want to just use a simple array, though, it's as simple as any other type:
delegate[] dels = new delegate[2];
dels[0] = new EventHandler(btn_Click);
dels[1] = new CancelEventHandler(form_Closing);
Using Delegate.Combine is much better, though, especially since it allows you to invoke the entire list of delegates unlike this array for which you'd have to iterate and invoke each delegate yourself.

 

Microsoft MVP, Visual C#
My Articles
GeneralProblem with System namespace Pin
Azghar Hussain13-Jun-04 22:25
professionalAzghar Hussain13-Jun-04 22:25 
GeneralRe: Problem with System namespace Pin
Stefan Troschuetz13-Jun-04 22:32
Stefan Troschuetz13-Jun-04 22:32 
GeneralTreeView with Backgroung Image Pin
yonitgil13-Jun-04 22:14
yonitgil13-Jun-04 22:14 
GeneralRe: TreeView with Backgroung Image Pin
Heath Stewart14-Jun-04 4:01
protectorHeath Stewart14-Jun-04 4:01 
GeneralCan't use System.Version in webservice method Pin
Jan R Hansen13-Jun-04 21:37
Jan R Hansen13-Jun-04 21:37 
GeneralRe: Can't use System.Version in webservice method Pin
Heath Stewart14-Jun-04 3:51
protectorHeath Stewart14-Jun-04 3:51 
GeneralRe: Can't use System.Version in webservice method Pin
Jan R Hansen14-Jun-04 4:35
Jan R Hansen14-Jun-04 4:35 
GeneralRe: Can't use System.Version in webservice method Pin
Heath Stewart14-Jun-04 4:44
protectorHeath Stewart14-Jun-04 4:44 
GeneralInterop and Collections Pin
ddcs13-Jun-04 21:00
ddcs13-Jun-04 21:00 
Generalsetup project Pin
Dpriya13-Jun-04 20:46
Dpriya13-Jun-04 20:46 
GeneralRe: setup project Pin
The_Soul_Of_Rock13-Jun-04 21:11
The_Soul_Of_Rock13-Jun-04 21:11 
GeneralRe: setup project Pin
Dpriya14-Jun-04 1:17
Dpriya14-Jun-04 1:17 
GeneralRe: setup project Pin
Serge Lobko-Lobanovsky14-Jun-04 2:17
Serge Lobko-Lobanovsky14-Jun-04 2:17 
GeneralRe: setup project Pin
Heath Stewart14-Jun-04 3:35
protectorHeath Stewart14-Jun-04 3:35 
QuestionHow can I initialize tapiFax in C# Pin
GuruVN13-Jun-04 19:24
GuruVN13-Jun-04 19:24 
GeneralDataGridBoolColumn Pin
quocbao13-Jun-04 15:22
quocbao13-Jun-04 15:22 
GeneralRe: DataGridBoolColumn Pin
DougW4813-Jun-04 17:17
DougW4813-Jun-04 17:17 

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.