I have an understanding of delegate concept, but not getting the scenarios of when to implement delegate and to write a method. Please anyone help me on this.
Asked
Active
Viewed 45 times
0
-
Please, share what have you tried so far? – Pavel Anikhouski Feb 17 '20 at 10:14
-
1@PavelAnikhouski I don't t think this is a question of HOW to do it, but WHEN. – Adrian Feb 17 '20 at 10:15
-
follow this answer: https://stackoverflow.com/a/9919882/6797509 – Hamed Moghadasi Feb 17 '20 at 10:20
-
2We *execute* methods, e.g. `double x = Math.Sin(0.1233); /* compute sin for me*/` and *pass* delegates: `MyList.Sort(myDelegate); /* sort list using my custom comparsion rule - myDelegate*/` – Dmitry Bychenko Feb 17 '20 at 10:21
-
Thanks @HamedMoghadasi...the suggested article will help me to get the anwser. – Priyanka Yemul Feb 17 '20 at 11:15