Top "Delegates" questions

Delegates can refer to several concepts.

Is EndInvoke() optional, sort-of optional, or definitely not optional?

I've read conflicting opinions as to whether every BeginInvoke() has to be matched by an EndInvoke(). Are there any leaks …

c# multithreading delegates
Qt: start editing of cell after one click

By default the cell in QTableView starts being edited after double click. How to change this behavior. I need it …

c++ qt delegates qtableview model-view
Action to Delegate : new Action or casting Action?

I found two different ways to initialize a Delegate with an Action : Create a new action or casting to Action. …

c# casting delegates lambda action
5 years later, is there something better than the "Fastest Possible C++ Delegates"?

I know that the topic of "C++ delegates" has been done to death, and both http://www.codeproject.com and …

c++ delegates performance
A delegate for a function with variable parameters

I have a function of this sort void func(params object[] parameters) { //Function Body } It can accept parameters of the …

c# delegates func
Anonymous methods and delegates

I try to understand why a BeginInvoke method won't accept an anonymous method. void bgWorker_ProgressChanged(object sender, ProgressChangedEventArgs e) { …

c# .net delegates .net-2.0 anonymous-methods
Dismissing UIPopoverController with -dismissPopoverAnimated: won't call delegate?

I have my UIPopoverController with self as a delegate: I receive calls when I tap outside the popover controller, but …

iphone cocoa-touch delegates uipopovercontroller
Builds a Delegate from MethodInfo?

After googling and landing on SO and having read this other question Is it possible to build a correct Delegate …

.net reflection delegates methodinfo
Is it possible to declare generic delegate with no parameters?

I have... Func<string> del2 = new Func<string>(MyMethod); and I really want to do.. Func&…

c# generics delegates func
Is there a case where delegate syntax is preferred over lambda expression for anonymous methods?

With the advent of new features like lambda expressions (inline code), does it mean we dont have to use delegates …

c# .net-3.5 delegates lambda anonymous-methods