Top "Delegates" questions

Delegates can refer to several concepts.

C# Lambda Functions: returning data

Am I missing something or is it not possible to return a value from a lambda function such as.. Object …

c# .net delegates anonymous-function lambda
unknown type name in objective c

I'm pretty new to objective c, and having some basic problems. I wrote a simple program using a navigator, and …

objective-c types delegates navigator
Get current view controller from the app delegate (modal is possible)

I know that to get the current view controller from the app delegate, I can use the navigationController property I …

ios objective-c delegates appdelegate
UISearchBar x button pressed

How handle the event when press the 'x' button? I try this method but not works. -(void)searchBarCancelButtonClicked:(UISearchBar *)…

ios xcode delegates uisearchbar
Examples of Delegates in Swift

I have been trying to learn how delegation with protocols work. I understood everything, but I can't think of when …

swift design-patterns delegates protocols delegation
Func delegate with ref variable

public object MethodName(ref float y) { //method } How do I defined a Func delegate for this method?

c# c#-3.0 reference delegates func
Creating delegate from MethodInfo

I am currently running into an issue trying to create delegates from MethodInfo. My overall goal is to look through …

c# delegates attributes methodinfo
NSURLSession delegate vs. completionHandler

I've always used completion handlers. With NSURLConnection and now with NSURLSession. It's led to my code being really untidy, especially …

ios objective-c delegates nsurlconnection nsurlsession
Are C# events synchronous?

There are two parts to this question: Does raising an event block the thread, or does it start execution of …

c# .net events delegates
Can I use params in Action or Func delegates?

When I'm trying to use params in an Action delegate... private Action<string, params object[]> WriteToLogCallBack; I received …

c# delegates action params-keyword