Тёмный

What is the use of delegate in C# ? 

Interview Happy
Подписаться 86 тыс.
Просмотров 56 тыс.
50% 1

1. Full .NET Interview Course (with PDF Book)
C# / ASP.NET Core / MVC / API - Top 500 Interview Questions
www.udemy.com/course/csharp-o...
Don't worry if course not helping you, Udemy has 30 days Free Refund Policy.
2. Quick Revision Book (PDF format)
Top 500 .NET Interview Questions - OOPS/ C#/ ASP.Net/ MVC/ SQL /.Net Core /Web API
imojo.in/interviewhappy
50% Discount Applied on above link.
Don't worry if book not helping you, I will return 100% of your money with in 7 days of purchase. Just mail me at anuragrawat123@gmail.com.
My best wishes are with you.

Опубликовано:

 

20 апр 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@davidemmanuel3001
@davidemmanuel3001 Год назад
This less than 2 mins video has explained delegate to me better than a 2 hours video
@randomtech0
@randomtech0 10 месяцев назад
Fact
@SagarShirke09
@SagarShirke09 Месяц назад
100 💯
@jackchitte
@jackchitte Месяц назад
Is there 1-2hr video about delegate?
@StephenBeale
@StephenBeale 4 месяца назад
Very helpful, have an interview tomorrow and this came up in my last interview but I couldn't answer it ☺️ PS one thing - you say the use is "when we have to pass a method as a parameter,", but when would you want to do that? A contextual example would have been even more helpful
@mohammadtalha2192
@mohammadtalha2192 21 день назад
Delegates are mainly useful when we want to pass a method as a callback function when we are using parallel processing or asynchronous programming.
@niroi3182
@niroi3182 18 дней назад
Thanks for explanation, i wasn't aware when interviewer asked me about this.. As web developer, i'm not familiar with this concept but seems interesting..
@interviewhappy
@interviewhappy 17 дней назад
Glad it was helpful!
@ermahesh2009
@ermahesh2009 Год назад
built in delegate par bhi banao sir ❤
@codewithkashif
@codewithkashif Год назад
Now most important question - why would someone call that method via another delegate and why cant call it directly?
@vivekpuri-08
@vivekpuri-08 11 месяцев назад
Exactly I was asked this in an interview.
@elallende
@elallende 10 месяцев назад
@@vivekpuri-08 would you mind to let me know the expected answer ?
@rupeshkamble9105
@rupeshkamble9105 9 месяцев назад
For callback mechanism.... You can pass method A as a param to method B. Executive whatever you want then call a method A as a notifier.
@louieb4878
@louieb4878 9 месяцев назад
@@rupeshkamble9105 interesting. Can you share a good tutorial about callback mechanism?
@starhunterjohn
@starhunterjohn 7 месяцев назад
Nice clarification. Thank you very much
@interviewhappy
@interviewhappy 7 месяцев назад
Glad it was helpful! @john
@adarshpanday3159
@adarshpanday3159 10 месяцев назад
that's great explanation thanx buddy ❤
@interviewhappy
@interviewhappy 10 месяцев назад
Glad you liked it! @adarsh
@Sri-be2gx
@Sri-be2gx 8 месяцев назад
Question - if I have to call the Mul method, should I instantiate the delegate again?
@iliyasRaj
@iliyasRaj 10 месяцев назад
Great this delegates is very confusing concept for me
@interviewhappy
@interviewhappy 8 месяцев назад
Yes, it has very less use for web developers but for winforms it's important
@swapnilsonawane7472
@swapnilsonawane7472 9 месяцев назад
Very easy explanation❤
@interviewhappy
@interviewhappy 9 месяцев назад
Glad you liked it @swapnil
@vigneshpari5038
@vigneshpari5038 6 месяцев назад
Sir you used add method anly , mul method how to use pls tell me
@AnilKumar-jm3vv
@AnilKumar-jm3vv 11 месяцев назад
Delegate is used to call more than one function with single call.
@rudrarupmukherjee1795
@rudrarupmukherjee1795 6 месяцев назад
What would be the output?
@siddheshgharpankar2501
@siddheshgharpankar2501 Год назад
👍
@interviewhappy
@interviewhappy Год назад
Thanks Siddehsh. Best of luck for your career.
@kaleemiqbal4190
@kaleemiqbal4190 Месяц назад
Bro method name apna likhna chahiye,
@shrikantpandey9738
@shrikantpandey9738 7 месяцев назад
Can we call static method with delegate object are you sure?????
@rajeshkale3299
@rajeshkale3299 2 месяца назад
Why even delegate we can write the normal method and we can call by using class object
@SagarShirke09
@SagarShirke09 Месяц назад
Same question from me also ?
@maheshshirsat9075
@maheshshirsat9075 17 часов назад
For callback mechanism ​@@SagarShirke09