Delegates in C# | Delegates Part 1 | C#.NET Tutorial | Mr. Bangar Raju

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 125

  • @SuperYtubeuser
    @SuperYtubeuser 3 роки тому +5

    After many years this is the first time I got the clear understanding of delegate .. much appreciated

  • @harrysanders818
    @harrysanders818 7 років тому +9

    One of the best instructors I´ve ever seen. Great channel.

  • @deanVetUk
    @deanVetUk 5 років тому +12

    hey thanks Raju, i like that even though presented informally, you still remind us of the correct definitions. Now I get it that delegates are type-safe Pointers to Methods.

  • @educationinternational4738
    @educationinternational4738 4 місяці тому +1

    Very impressive I have been struggling with the delegates now i am still getting it thanks so much.

  • @swapnalimore7145
    @swapnalimore7145 4 роки тому +1

    First time understood the concept of delegate..very useful video

    • @nallaspathfinder9779
      @nallaspathfinder9779 4 роки тому

      subscribe here if you like this .net interview questions :ua-cam.com/video/H8b0RV6iG_s/v-deo.html

  • @jeyankondan
    @jeyankondan 7 років тому +18

    Good explanation. But please explain what is the purpose of delegates and where to use. Also what is the diff b/w by directly calling a method and calling by using Invoke. Thanks.

    • @umeshkv4797
      @umeshkv4797 4 роки тому +1

      The best use of delegates is to use it as an event.Let me correct if i m wrong.

    • @BharatMishra-zo5gt
      @BharatMishra-zo5gt 5 місяців тому +1

      It is useful when you want to invoke multiple functions indirectly, more of an encapsulation logic

  • @frozenprakash
    @frozenprakash 7 років тому +7

    Excellent way of explaining in simple words !!
    Please make a caption at end of video that there is Part 2 of video where you explain the advantage of using the delegate over direct method call !!
    I thought initially you forgot to tell the advantage of delegate over normal method call :)

    • @MBangarraju
      @MBangarraju 7 років тому +2

      Please refer to Collections Part 7 video to under the usage of a delegate.

    • @EVWorld246
      @EVWorld246 4 роки тому

      @@MBangarraju This video i don't find in your video series.

  • @anilsuyal
    @anilsuyal 2 роки тому +1

    Thankyou so much sir for such an easy explanation. i've came here after watching several videos and articles and can't find any better explanation about delegate than this one.🙏🙏👏

  • @dattakashiwale
    @dattakashiwale 4 роки тому +1

    had live session before 5 years.. now once again calling back memories....

  • @imadabab
    @imadabab 4 роки тому

    I have watched tens of videos about Delegates in C#, I didn't understand it well till the time I watched this professional and simple video. 1000 Thanks. I have subscribed long time ago.

  • @vrushabhdeshmukh8118
    @vrushabhdeshmukh8118 4 роки тому +1

    I am big fan of your Sir. You have made this concepts very simple for us. Thank you.

  • @umeshkv4797
    @umeshkv4797 4 роки тому +1

    Extra ordinary and quite interesting explanation about each and every topics.Sir,I love the way you explained.I become big fan of yours "Sir".Thankyou Thankyou Thankyou !!!

  • @antarikshsharma573
    @antarikshsharma573 3 роки тому +1

    The explanation is good and upto the mark. The only thing missing is the real time usage of delegate. Why it actually came and when am I supposed to use them. I was looking for that thing in the video but did not find any. Coding perspective is done...but, question remain the same. Why and when should I use it???????

  • @kaaviyam2710
    @kaaviyam2710 2 роки тому

    A Great Explanation ... i have been searching this kinda clarity for the couple of hours

  • @asrowley1
    @asrowley1 6 років тому

    Very clear. Very simple. Explained with simple example so it is easy to understand. Thank you.

  • @angularuser2104
    @angularuser2104 4 роки тому +2

    Nice explanation sir👍👍

    • @nallaspathfinder9779
      @nallaspathfinder9779 4 роки тому

      subscribe here if you like this .net interview questions :ua-cam.com/video/H8b0RV6iG_s/v-deo.html

  • @kunalsingh1636
    @kunalsingh1636 3 роки тому

    Sir your all lecture videos is very technical and helpful for us.
    Thanks for upload 🙏

  • @horrorfactory770
    @horrorfactory770 10 місяців тому

    Thank you so much sir for this ! It was so easy to understand everything about delegates from this video.

  • @prasadsangeetha
    @prasadsangeetha 3 роки тому +1

    Wonderful Explanation

  • @nehavig7584
    @nehavig7584 3 роки тому +1

    wonderful explanation Sir.Thank you so much sir for the video.

  • @roiram3286
    @roiram3286 5 років тому

    Seriously Sir Thank you. I have said it before and I will say it again. you are the best.

  • @polytechbadi8591
    @polytechbadi8591 3 роки тому

    Great sir,your way of teaching is awesome .

  • @kiritikumbhakar4238
    @kiritikumbhakar4238 3 роки тому

    Very clear explanation. Much appreciated. Thanks

  • @zeeshaniqbal5518
    @zeeshaniqbal5518 2 роки тому

    Raju you are the best.

  • @suchitrakuchipudi4271
    @suchitrakuchipudi4271 2 роки тому

    Clear cut explanation sir.. Thankyou 😊

  • @singalong8836
    @singalong8836 3 роки тому +1

    Lovely . I liked the way you explained it. I have a question . Any specific use-case of when to use Delegate?

  • @faizashrafansari3672
    @faizashrafansari3672 2 роки тому

    what a legendary explaination sir😀, Thank you🙏

  • @shishirpyasi007
    @shishirpyasi007 5 років тому +1

    thanks for sharing such nice information like your explanations in interesting way

  • @saraabbasi4719
    @saraabbasi4719 4 роки тому

    Good explanation in english and as well as translate in urdu your lectures becomes super

  • @sauravpatil1651
    @sauravpatil1651 Рік тому

    very nice teaching

  • @BHARATGARANDE
    @BHARATGARANDE 7 років тому +1

    Lot Of Thanks..Our Videos are very...Easy to understand ..please upload another......I'll waiting.....always..

  • @fw3002
    @fw3002 3 роки тому

    Thank you so much, you are a very talented teacher.

  • @vijaylakshmi369
    @vijaylakshmi369 5 років тому

    If it gives output as normal methods why we need the delegates ? Please explain .
    Can we use Static keyword in delegate signature ? if not why ? Please explain.
    And your explanation of delegate is very clear . Thank you very much.

  • @soumyam3746
    @soumyam3746 4 роки тому

    Thank you sir.....u saved me......thank you very much....

  • @shaikyasinbasha3524
    @shaikyasinbasha3524 2 роки тому

    Great sir..........thank u.

  • @daalwada
    @daalwada 5 років тому +3

    Hello Mr. Bangar Raju. I follow your videos and they really awesome!
    I have a question in my mind. If we can call the methods directly by creating the instance or by statically why should we have such a lengthy code with delegates and then call any method?

    • @deepeshkumar2925
      @deepeshkumar2925 9 місяців тому

      As per our requirement . there is many way that you know to access the member of class by object creation. so this is not appropriate question becoz there is many opt.

    • @deepeshkumar2925
      @deepeshkumar2925 9 місяців тому

      more over when we need to passing the method as a parameter. then we can use delegate. if not need then why should write lenghty code

  • @dhineshkumar556
    @dhineshkumar556 7 років тому

    Awesome, Your videos are Very much clear and easy to Understand. Thank you sir..

  • @ashutyagi9877
    @ashutyagi9877 2 роки тому

    Good explanation

  • @gauravdhasmana166
    @gauravdhasmana166 5 років тому

    Tnks very much .Very good videos sir.

  • @kumardebasisbehera1440
    @kumardebasisbehera1440 7 років тому +3

    Hi Sir all your videos is very good.Easy to understand ..please upload Interface and Ado.net videos.please Thank you.. Sir

    • @NareshIT
      @NareshIT  7 років тому +2

      Interface in C#.Net videos ua-cam.com/video/F0OqWKayYpo/v-deo.html

  • @Mahesh-op3nw
    @Mahesh-op3nw 7 місяців тому

    Superb

  • @kathirangamuthu3574
    @kathirangamuthu3574 2 роки тому

    Thank you very much ....

  • @sujanthapa1862
    @sujanthapa1862 2 роки тому

    delegates are reference type variables that holds the reference to a method.

  • @sudarshanwaghmode6954
    @sudarshanwaghmode6954 3 роки тому

    Very helpful..

  • @gowthamrajasekar
    @gowthamrajasekar 3 роки тому

    super explanation sir, but can u tell me why delegate method is used ? ( i am starting to learn)

  • @rohitmalla6827
    @rohitmalla6827 6 років тому

    You are simply awesome...

  • @poojapandey7085
    @poojapandey7085 4 роки тому +1

    Nice explanation :)

    • @nallaspathfinder9779
      @nallaspathfinder9779 4 роки тому

      subscribe here if you like this .net interview questions :ua-cam.com/video/H8b0RV6iG_s/v-deo.html

  • @anupjaiswal7826
    @anupjaiswal7826 3 роки тому

    Great lecture 🙏

  • @shreykhurana577
    @shreykhurana577 5 років тому

    Simple and Lucid Explanation. Thank you, Sir.

  • @AllahsBoy
    @AllahsBoy 7 місяців тому

    Shukriya

  • @top5things968
    @top5things968 2 роки тому

    THANK YOU SIR .

  • @user-sv6ei6sz5z
    @user-sv6ei6sz5z 6 років тому

    a very good explanation, what should i add more in this to make it user interactive. for example, the user enters two number such as 5 and 5 and the program reply the answer as 10

  • @uthayakumar4774
    @uthayakumar4774 3 роки тому

    Great explain❤

  • @ravirana5882
    @ravirana5882 3 роки тому

    Can u also explains if directly I can call the function then why delegates are required

  • @nipunabandarakarunarathne3544
    @nipunabandarakarunarathne3544 6 років тому

    Thank you very much sir, your explanation is superb.

  • @sandeepreddy2904
    @sandeepreddy2904 7 років тому

    Excellent Explanation .

  • @Alpha_M.
    @Alpha_M. 3 роки тому

    Goodp. But i have a question here , what is the use case of calling a method indirectly using delegate. What is the need of using a delegate here.

  • @MrDp297
    @MrDp297 5 років тому

    I was wondering.....why when u have Static to Static methods in one case u mean to call them by the name of the class.methodname, while when assigned as a method in the delegate class name is not necessary?

  • @avikghosh3009
    @avikghosh3009 4 місяці тому

    Thank you

  • @DineshPatil-ex6ij
    @DineshPatil-ex6ij 5 років тому

    sir , why we use delegates instate of using functions directly . it's actually increasing code size and i have extra process to do same thing , so why we use it ...?

  • @deepakbehera4322
    @deepakbehera4322 4 роки тому

    @Bangar Raju Sir, If the Method has done the same work why using Delegate, what is the main propose of delegate?

  • @ishansharma6341
    @ishansharma6341 5 років тому

    Hi sir what is the purpose of using delegates over normal function call, if our purpose is being solved by simple approach? and what are its used cases ?

  • @kannagogula7192
    @kannagogula7192 7 років тому

    boom boom..excellent..sir....superb explanation

  • @kalakatta6
    @kalakatta6 7 років тому

    very nice explanation sir.. 👌

  • @rajkumarkadam6429
    @rajkumarkadam6429 7 років тому

    thank you sir for video tutorial its great steps!!

  • @meghareddy3391
    @meghareddy3391 3 роки тому

    Hi Sir, can u pls upload video about design patterns

  • @mrk5542
    @mrk5542 7 років тому +1

    sir please upload all your the notes you write in notepad,,, its very easy to understand

  • @thedude3544
    @thedude3544 5 років тому

    thanks . this video very helpful !

  • @kickytechs2185
    @kickytechs2185 7 років тому

    Excellent Sir !!!
    But what is the benefit of using delegates?

    • @MBangarraju
      @MBangarraju 7 років тому +3

      Please refer to Collections Part 7 video to under the usage of a delegate.

  • @prateekghosh6984
    @prateekghosh6984 7 років тому

    Thanku sir for the video it was very nice but what is use of delegate when we can call the method through class intantiation ?
    Why we use delegate when we have 2 methods to call a method and i think lang like java doesnt use this concept ?
    What delgaet has bought in OOP model ?

    • @MBangarraju
      @MBangarraju 7 років тому

      Please refer to Collections Part 7 video to under the usage of a delegate.

  • @nageshchinna4684
    @nageshchinna4684 7 років тому +1

    hello hai sir how r u sir your videos is very very good sir...
    Easy to understand...please upload ado.net and interface videos .please please sir
    Thank You sir......

    • @NareshIT
      @NareshIT  7 років тому

      Interface in C#.Net videos ua-cam.com/video/F0OqWKayYpo/v-deo.html

  • @jayasaravanan5861
    @jayasaravanan5861 2 роки тому

    dude super

  • @naseemabegum109
    @naseemabegum109 5 років тому

    Thank You So much Sir ....

  • @vijayarajan-bt5fk
    @vijayarajan-bt5fk 5 місяців тому

    🎉🎉

  • @rahimeinollahi1
    @rahimeinollahi1 6 років тому

    Thanks sir Raju

  • @nrk2892
    @nrk2892 5 років тому

    Thanks a lot

  • @manojchowdary5085
    @manojchowdary5085 7 років тому

    Why dont we directly call method ? what is the advantage of using delegate ?

  • @ranjeet99mishrarock
    @ranjeet99mishrarock 7 років тому

    hello sir ...then what is the advantage of delegates if mehods itself do their work?

  • @Shakti_Kr_Singh
    @Shakti_Kr_Singh 6 років тому

    In which video I can find about Abstraction and Encapsulation ?

  • @ShivaKumar-eb3po
    @ShivaKumar-eb3po 6 років тому

    Why Delegates ? Is there any reusability or fast accessing ?

  • @miscellaneousabc9565
    @miscellaneousabc9565 5 років тому

    Sir what is an advantage of the delegate

  • @piyushjiwane4360
    @piyushjiwane4360 4 роки тому

    does we use delegates in real time ??

  • @ehsanafzal185
    @ehsanafzal185 5 років тому

    Excellent Lecture (Love.pakistan)

  • @subhasispattanaik5714
    @subhasispattanaik5714 5 років тому

    One question
    Why
    string str = SayHello("Raj");
    Why not
    SayHello ("Raj")

    • @sanwalchaudhry2099
      @sanwalchaudhry2099 5 років тому +1

      because the method which will be invoked by the delegate returns a string value. so we have to store that string value somewhere. so that we can use it later.

    • @subhasispattanaik5714
      @subhasispattanaik5714 5 років тому

      Thanks

  • @amarblogs5809
    @amarblogs5809 6 років тому

    sir thanks for this can u pls provide delegate with return type method with multicast delegate

    • @ramgupta9589
      @ramgupta9589 6 років тому

      www.javatpoint.com/c-sharp-delegates

  • @skazlan2354
    @skazlan2354 4 роки тому +1

    Why we use delegate?

  • @laxmanrepe5296
    @laxmanrepe5296 3 роки тому

    Sir i need Encrypt and decryptfile upload in web server pl let me know

  • @shibugope6403
    @shibugope6403 7 років тому

    why we use delegate....can you tell me when we go for delegate,

    • @hemalrana
      @hemalrana 7 років тому

      there s part 2 as well.

  • @dhrumilshah2829
    @dhrumilshah2829 7 років тому +1

    upload the ado .net video

  • @arju-n5567
    @arju-n5567 Рік тому

    meeru nijam gane bangaram sir

  • @ullasv
    @ullasv 2 роки тому

    But what is the main use of Delegates?

  • @sudheerkumar-zw1rf
    @sudheerkumar-zw1rf 6 років тому

    Where do we use delegates in real world software applications? .There is no clear explanation all over internet.Everbody explains the same way

  • @mohanpara4535
    @mohanpara4535 7 років тому +1

    I have seen this Video to get know what is the real use of delegates.But Nothing is there Thanks

    • @PradeepKumar-fy2ws
      @PradeepKumar-fy2ws 7 років тому

      True.....All videos are just referring the Microsoft docs and explaining in their own words....nothing new

    • @111niloy222
      @111niloy222 6 років тому

      now what else do u want? He should go inside ur mind and do all your work of real time projects. He is just explaining concepts rest u need to do it practically to understand it.

  • @Deepak_Guru_official
    @Deepak_Guru_official 5 років тому

    Both r same then why we use delegate?

  • @akfsf00543
    @akfsf00543 6 років тому

    i am using simply function. than why am i use delegate?

    • @studentfeedback
      @studentfeedback 5 років тому +2

      I was also having the same question. The thing is if we use a simple function the caller (client code) has to call the same simple function but if you use a delegate the caller can call ANY function which which has the same signature (return type and parameters) irrespective of its name or the logic it contains. So the consumer of the delegate has the flexibility to choose/supply any function as per the requirement.

  • @amarblogs5809
    @amarblogs5809 6 років тому

    sir return type delegate use krte hue btaiye pls khi mil nhi rha

    • @ramgupta9589
      @ramgupta9589 6 років тому

      www.javatpoint.com/c-sharp-delegates

  • @balamuruganp3865
    @balamuruganp3865 5 років тому

    Why should I use delegate

  • @harshit_._pathak9729
    @harshit_._pathak9729 9 місяців тому

    Bhai tu jhnn dikhta hai mujhe gussa alg saara hai Bhaii 😂

  • @mahidharguggilam2435
    @mahidharguggilam2435 5 років тому

    Still didn't understand the main use of delegate. Just it the explanation of how to use it