Top "Delegates" questions

Delegates can refer to several concepts.

About "Declaration is only valid at file scope"

I have a class+extension swift file. After adding a delegate that I declared in another file to the class, …

ios swift delegates
anonymous delegates in C#

I can't be the only one getting tired of defining and naming a delegate for just a single call to …

c# delegates anonymous-methods
Return a value from an Event -- is there a Good Practice for this?

I'm doing a small multi-threaded app that uses asynchronous TCP sockets, but I will get to the point: I'm using …

c# multithreading events delegates
Why are Objective-C delegates usually given the property assign instead of retain?

I'm surfing through the wonderful blog maintained by Scott Stevenson, and I'm trying to understand a fundamental Objective-C concept of …

objective-c ios cocoa delegates
What is the difference between new Action() and a lambda?

So when I write something like this Action action = new Action(()=>_myMessage = "hello"); Refactor Pro! Highlights this as a …

c# .net-3.5 delegates lambda
Wrap a delegate in an IEqualityComparer

Several Linq.Enumerable functions take an IEqualityComparer<T>. Is there a convenient wrapper class that adapts a delegate(…

.net linq delegates
Difference Between Invoke and DynamicInvoke

What is the difference between Invoke and DynamicInvoke in delegates? Please give me some code example which explain difference between …

c# .net delegates invoke dynamic-invoke
Where do I use delegates?

What are some real world places that call for delegates? I'm curious what situations or patterns are present where this …

oop design-patterns delegates
In .NET, what thread will Events be handled in?

I have attempted to implement a producer/consumer pattern in c#. I have a consumer thread that monitors a shared …

c# .net events multithreading delegates
When would you use delegates in C#?

What are your usage of delegates in C#?

c# .net delegates