Top "Delegates" questions

Delegates can refer to several concepts.

What is Delegate?

I am confused that what is the actual role of a delegate? I have been asked this question many times …

oop delegates
How do I form a good predicate delegate to Find() something in my List<T>?

After looking on MSDN, it's still unclear to me how I should form a proper predicate to use the Find() …

c# list delegates find predicate
Events - naming convention and style

I'm learning about Events / Delegates in C#. Could I ask your opinion on the naming/coding style I've chosen (taken …

c# events delegates
Why must a lambda expression be cast when supplied as a plain Delegate parameter

Take the method System.Windows.Forms.Control.Invoke(Delegate method) Why does this give a compile time error: string str = "…

c# c#-3.0 delegates lambda
C# - ThreadPool QueueUserWorkItem Use?

Just right now I'm using following code to add queued threads. I don't like it. And my colleagues won't either …

c# multithreading delegates threadpool
Cannot assign a value of type ViewController to a value of type UITextFieldDelegate?

Here's the error when I wrote the line self.MessageTextField.delegate = self: /ChatApp/ViewController.swift:27:42: Cannot assign a value of …

ios swift delegates syntax-error uitextfielddelegate
How to use custom delegates in Objective-C

I need to know about the usage of delegate methods in Objective-C. Can anyone point me to the correct source?

objective-c cocoa-touch delegates
Action<T> vs delegate event

I have seen developers using the below codes quite alternatively. What is the exact difference between these, and which ones …

c# delegates
How do i exit a List<string>.ForEach loop when using an anonymous delegate?

In a normal loop you can break out of a loop using break. Can the same be done using an …

c# loops delegates
MethodInvoker vs Action for Control.BeginInvoke

Which is more correct and why? Control.BeginInvoke(new Action(DoSomething), null); private void DoSomething() { MessageBox.Show("What a great …

c# .net delegates invoke