Top "Delegates" questions

Delegates can refer to several concepts.

C# pattern to prevent an event handler hooked twice

Duplicate of: How to ensure an event is only subscribed to once and Has an event handler already been added? …

c# event-handling delegates
How to create an asynchronous method

I have simple method in my C# app, it picks file from FTP server and parses it and stores the …

c# asynchronous delegates
Assigning to 'id<Delegate>' from incompatible type 'ViewController *const_strong'

Throughout my app, I'm getting semantic issue warnings when I set ViewController.delegate = self. I have searched and found similar …

ios objective-c delegates
How to add a delegate to an interface C#

I need to have some delegates in my class. I'd like to use the interface to "remind" me to set …

c# interface delegates
Cannot convert lambda expression to type 'object' because it is not a delegate type

I have a base class that has a bool property which looks like this: public abstract class MyBaseClass { public bool …

c# linq lambda delegates
Difference between events and delegates and its respective applications

I don't see advantages of using events over delegates, other than being syntactical sugar. Perhaps I am misunderstanding, but it …

c# events delegates
Unsubscribe anonymous method in C#

Is it possible to unsubscribe an anonymous method from an event? If I subscribe to an event like this: void …

c# delegates anonymous-methods
delegate keyword vs. lambda notation

Once it is compiled, is there a difference between: delegate { x = 0; } and () => { x = 0 } ?

c# .net delegates lambda anonymous-methods
How do I know that the UICollectionView has been loaded completely?

I have to do some operation whenever UICollectionView has been loaded completely, i.e. at that time all the UICollectionView's …

uicollectionview delegates reload