hi all:)
i got confused in this point:(
i have questions that i don't understand it well
knowing that i have searched a lot but i don't know i didn't understand it yet
1-when it is really impossible to work in a
program without a delegate (please give a simple example)?
2-what is the difference between delegates and calling a function?
3-and i know that delegates can refer to multiple methods so when i invoke it all of them will work so does the threads enter this field:-/ and how ?
4-what is the benefits of the Anonymous Methods ? (please give example in a program)
5-can i run the delegate without method invoker???
del(1);
for example and when to use method invoker
and sorry for wasting ur time but it will be a generosity of you if u could answer these questions please
Recommended Answers
Jump to Posthi all:)
i got confused in this point:(
i have questions that i don't understand it well
knowing that i have searched a lot but i don't know i didn't understand it yet
1-when it is really impossible to work in a
program without a delegate (please give a simple …
Jump to Post1-when it is really impossible to work in a program without a delegate (please give a simple example)?
>> Never really. Delegates are provided for convenience of calling. For example the Button's Click event is defined in the .NET Framework and by using a delegate any assembly that uses the …
Jump to PostYeah the difference between sknake and me is, he is full time student whereas i am full time employee. that explains why he is able to provide code and i am not. we will see him right after he starts to work as full time.
Jump to PostPerhaps this snippet will shed a light on how to pass methods(in this case math functions: Hi Scott;) ) as a parameter to other methods.
Jump to PostI would even say it is essential and necessary to use delegates in this case!
You integrate a function F (calculate the area under the curve between values a and b)
You cannot give the integrate method one value(a double) to do it's thing, you must give it the whole …
All 21 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.