C# DELEGATE WITH CALLBACK

Поделиться
HTML-код
  • Опубликовано: 11 фев 2019
  • Learn how to make a C# delegate with a callback.

Комментарии • 21

  • @EpicButterz
    @EpicButterz 5 лет назад +6

    I really wasn't getting how delegates and callbacks worked but your video was simple and easy to understand. Thank you!

    • @THEENK
      @THEENK  5 лет назад +1

      Thanks! I didn't see your reply until now. Glad it helped.

  • @nimibgh964
    @nimibgh964 4 года назад +5

    thanks for the video. one thing, people who look for this king of subjects - know basic things like open new project or console.read....

  • @ConsideraCore
    @ConsideraCore 3 года назад +6

    Why did you copy and paste almost every little chunk? Makes the video go by slowly when typing it could be much faster.

  • @neilvermeulen5283
    @neilvermeulen5283 4 года назад +2

    I now understand. Thank you kindly.

  • @donfeto7636
    @donfeto7636 4 года назад +1

    there is a callback in any delegate using begininvoke() which will also make the function run in different thread
    never the less You did a great work thank you

    • @THEENK
      @THEENK  4 года назад +1

      Thanks!

  • @mostafasholkany3693
    @mostafasholkany3693 2 года назад

    Thank you for a very good and simple explanation

  • @bruceb85
    @bruceb85 3 года назад

    very good explanation, easy to understand - please make more videos

  • @joandimko3063
    @joandimko3063 5 лет назад +6

    Good tutorial, but no need to F5 to check syntax. It is done automatically by Visual Studio as you type.

    • @THEENK
      @THEENK  5 лет назад +1

      Agreed. Didn't say it right. F5 for me makes sure it runs. I like to stay running.

  • @mariocamspam72
    @mariocamspam72 3 года назад

    cool

  • @mihaimyh
    @mihaimyh 2 года назад

    Why the delegate needs to be public since it is not being called directly from outside of the class?

  • @monkeyburger00
    @monkeyburger00 3 года назад

    good tutorial, but I still don't see the advantage of this pattern, can you elaborate?

    • @Bahanov
      @Bahanov 3 года назад +2

      Imagine that you have Yes/No UI Window witch you wanna reuse in your app and buttons should do different things every time.So you can call your ShowWindow() function and as a parameters you can pass the addresses(functions) you want to be executed when Yes or No is clicked. Something like this: ShowWindow(OnYesCallback,OnNoCallback)

  • @fingerfighters9999
    @fingerfighters9999 2 года назад

    There is no difference in output with or without callback?
    So what's really happening?
    Is it just theory to understand that using delegate, our compiler will be doing other tasks rather than just waiting for a task to complete?

  • @sclim6726
    @sclim6726 5 лет назад

    so what' s beauty of delegate based callback rather than calling function?

    • @yjhuang4877
      @yjhuang4877 5 лет назад

      when you develop base program or DLL , It would be more flexible than just calling function.

  • @Alex-by4zv
    @Alex-by4zv 3 года назад +1

    where's my capital letters?

  • @incaseyoumissedit9253
    @incaseyoumissedit9253 11 месяцев назад

    Why .net core?

    • @THEENK
      @THEENK  10 месяцев назад

      .net core is popular for business and a lot of legacy systems use it.
      And it does require a large install