Top "Delegates" questions

Delegates can refer to several concepts.

What is a C++ delegate?

What is the general idea of a delegate in C++? What are they, how are they used and what are …

c++ delegates delegation
Super-simple example of C# observer/observable with delegates

I recently started digging into C# but I can't by my life figure out how delegates work when implementing the …

c# events delegates observer-pattern
How to hide the keyboard when I press return key in a UITextField?

Clicking in a textfield makes the keyboard appear. How do I hide it when the user presses the return key?

ios objective-c cocoa-touch delegates
How do I set up a simple delegate to communicate between two view controllers?

I have two UITableViewControllers and need to pass the value from the child view controller to the parent using a …

ios objective-c iphone delegates
What are the differences between delegates and events?

What are the differences between delegates and an events? Don't both hold references to functions that can be executed?

c# events delegates glossary
Uses of Action delegate in C#

I was working with the Action Delegates in C# in the hope of learning more about them and thinking where …

c# lambda delegates action
What is Func, how and when is it used

What is Func<> and what is it used for?

c# .net delegates
How can I make a weak protocol reference in 'pure' Swift (without @objc)

weak references don't seem to work in Swift unless a protocol is declared as @objc, which I don't want in …

swift delegates swift-protocols
List<object>.RemoveAll - How to create an appropriate Predicate

This is a bit of noob question - I'm still fairly new to C# and generics and completely new to …

c# generics delegates lambda predicate
How can I clear event subscriptions in C#?

Take the following C# class: c1 { event EventHandler someEvent; } If there are a lot of subscriptions to c1's someEvent …

c# .net events delegates