Questions tagged as 'delegate'

2
answers

Empty delegate (delegate {})

What does the delegate { } statement return? Would you be an empty delegate? In what situations would it be necessary to create an empty delegate?     
asked by 13.12.2016 / 01:17
1
answer

What is the difference between event and delegate?

I have already understood how delegate and event works, but I have not seen event utility. For example: public delegate void ChangedEventHandler(object sender, BaseEventArgs e); public ChangedEventHandler Changed; The c...
asked by 04.04.2015 / 17:37
2
answers

Questions to ask about delegates

I have not yet fully absorbed the use of delegates, at what point I really should use a delegate and why it's built. So I ask the community the following question. What is really a delegate? That is the question and it requires a single answer....
asked by 11.06.2015 / 14:46
1
answer

What are the differences between local functions, delegates and lambdas expressions?

Local functions will be present in C # 7. Given this, I would like to know the main differences between local functions , delegates and expressions lambdas .     
asked by 01.02.2017 / 02:20
2
answers

Understanding lambda parameters of a delegate in a function

I have the function below. I just want to understand who X is and what values it is reaching in the course of the function. I could not get the debug. They do not have to say exact, between values literally, but like it being aringido. I'm study...
asked by 09.07.2015 / 12:12
1
answer

Delegate (similar to C #) in JavaScript

One feature I use extensively in C # is delegate which is a reference type used to reference anonymous or named methods. Especially the classes already implemented in the framework such as Action and Func , as shown below. public class...
asked by 20.07.2016 / 19:12
1
answer

Delegates and methods

When to use delegates . If I have a delegate I point to a correct method? Would not it be the same as creating a normal method? What's the difference and when to use and why to use? Is better? Is it worse?     
asked by 02.03.2016 / 03:32
1
answer

What are delegates?

In iOS programming, it is common to use structures that act as delegates . One of them, for example, is UITextFieldDelegate . This class, according to the documentation , informs the implementer of important events of UITextField...
asked by 25.02.2018 / 15:19
0
answers

List of int no delegate Func is not working

I'm studying something and I came across the following problem. I create a list of 7 elements and treat it within a Func < > it works, but if I increase the items in the list, then my method does not work as it should. That's right: This i...
asked by 02.06.2017 / 16:32
1
answer

Fill a listbox with predicatestring

I'm studying DDD and WebAPI and as I find it difficult, I'm researching and trying to solve it. Of course, sometimes I come across simple things for some here and I can not solve them right away. Sometimes I even understand what has to be don...
asked by 02.06.2017 / 15:20