Top "Delegates" questions

Delegates can refer to several concepts.

Storyboard - setting delegates

Before storyboards I was able to set delegates and datasources just by dragging an outlet to a class. With storyboards, …

ios xcode xcode4 delegates uistoryboard
Impossibly Fast C++ Delegates and different translation units

According to Sergey Ryazanov, his Impossibly Fast C++ Delegates are not comparable: My delegates cannot be compared. Comparison operators are …

c++ delegates language-lawyer one-definition-rule
How to provide default value for a parameter of delegate type in C#?

In C# we can provide default value of the parameters as such: void Foo(int i =0) {} But, when the method …

c# syntax delegates optional-parameters
Observer pattern implemented in C# with delegates?

There is a question already answered which is In C#, isn't the observer pattern already implemented using Events? It asks …

c# design-patterns events delegates observer-pattern
Does BeginInvoke() run a separate thread?

In my WPF application, I want to do some work in a non-UI thread so as to avoid the UI …

c# wpf multithreading delegates begininvoke
Why does trying to understand delegates feel like trying to understand the nature of the universe?

I've read two books, tons of examples. They still make next to no sense to me. I could probably write …

c# delegates
UICollectionViewDelegateFlowLayout methods not called in Swift 2.3 App

None of my UICollectionViewDelegateFlowLayout methods are called. Can somebody help me find a solution? In my ViewDidLoad method, I have …

swift delegates uicollectionviewdelegate
Operator '?' cannot be applied to operand of type 'T'

Trying to make Feature generic and then suddenly compiler said Operator '?' cannot be applied to operand of type …

c# generics delegates c#-6.0 null-propagation-operator
C# way to write Func with void return

I have the following two functions, that are nearly identical, the only difference is that one uses func, the other …

c#-4.0 delegates refactoring action func
C# - Event keyword advantages?

I've come to recently understand that a C# 'event' really is. It isn't really anything, honestly. To sum up my …

c# events delegates keyword