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 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 think serkan and danny have this thread under control. I'll probably confuse you more, they're doing a great job of explaining :P
No, when i said you post code samples, it was a praise. I definitely think that you are more helpful. I am usually tired and yesterday i …
Jump to Postthe best way to understand delegates is to have some knowledge about C. search for C function pointers, and you will have a good understanding of this delegate concept. It takes a while till you see it in action. Interfaces are also like that, you understand why they are useful …
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.