Top "Delegates" questions

Delegates can refer to several concepts.

Why can't an anonymous method be assigned to var?

I have the following code: Func<string, bool> comparer = delegate(string value) { return value != "0"; }; However, the following does …

c# .net-3.5 delegates lambda implicit-typing
How to work with delegates and event handler for user control

I have created a user control that contains a button. I am using this control on my winform which will …

c# user-controls event-handling delegates custom-event
What's the difference between data source and delegate?

I have a fundamental question related to Cocoa frameworks design patterns. What's the difference between delegate and data source? Both …

cocoa delegates protocols datasource
What's the best way to communicate between view controllers?

Being new to objective-c, cocoa, and iPhone dev in general, I have a strong desire to get the most out …

objective-c iphone cocoa-touch delegates key-value-observing
C#: Altering values for every item in an array

I'm wondering if there is built-in .NET functionality to change each value in an array based on the result of …

c# linq arrays delegates projection
iOS: Using UIView's 'drawRect:' vs. its layer's delegate 'drawLayer:inContext:'

I have a class which is a subclass of UIView. I am able to draw stuff inside the view either …

iphone ios delegates core-animation
Cannot find protocol declaration for

I have two objects, both of which are view controllers. The first (Ill call it viewController1) declares a protocol. The …

iphone objective-c ios delegates protocols
How do I describe an Action<T> delegate that returns a value (non-void)?

The Action<T> delegate return void. Is there any other built-in delegate which returns non void value?

c# .net delegates
Declare a delegate type in Typescript

Coming from a C# background, I want to create a datatype that defines a function signature. In C#, this is …

c# types lambda delegates typescript
When use [[UIApplication sharedApplication] delegate]

I don't know when or why I should use [[UIApplication sharedApplication] delegate] I use delegate when [self.navigationController pushViewController:myView …

iphone delegates uiapplicationdelegate pushviewcontroller