C# EVENTS for Dummies

Поділитися
Вставка
  • Опубліковано 11 жов 2019
  • 💻 DOWNLOAD THE SOURCE CODE 👉 bit.ly/my-source-ciu 👈
    🔔 SUBSCRIBE FOR MORE C# LESSONS 👉 bit.ly/mytestedaspnet 👈
    In this video, I explain C# events with an as simple example as possible.
    ► My Tested ASP.NET Source Code: github.com/ivaylokenov
    ► My Tested ASP.NET Website: mytestedasp.net
    ★★ BECOME A BACKER OR SPONSOR ★★
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ► Patreon: / ivaylokenov
    ► OpenCollective: opencollective.com/mytestedas...
    ► PayPal: paypal.me/ivaylokenov
    ► Buy Me A Coffee: buymeacoff.ee/ivaylokenov
    ★★ Follow My Tested ASP.NET ★★
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ► Instagram: / mytestedaspnet
    ► Twitter: / mytestedaspnet
    ► Facebook: / mytestedaspnet
    ► LinkedIn: / mytestedaspnet
    ★★ Follow Me ★★
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ► Instagram: / ivaylokenov
    ► Facebook: / ivaylo.kenov
    ► LinkedIn: / kenov
    ★★ Links From The Video ★★
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ► C# Delegates for Dummies: • C# DELEGATES for Dummies
    ► C# Action and Func for Dummies: • C# ACTION and FUNC for...
  • Наука та технологія

КОМЕНТАРІ • 29

  • @abouttimebrewing3215
    @abouttimebrewing3215 День тому

    Fantastic! Thank you. I wrote WPF apps for years and didn't know I was using delegates for field changes.

  • @muhamadhanifsafwanabrazak551
    @muhamadhanifsafwanabrazak551 3 роки тому +8

    no cat was harmed in the making of this video, nice video btw

  • @nicholasziglio
    @nicholasziglio 2 роки тому +15

    Best explanation I've seen so far. So simple! Thank you very much :)

  • @gajarubanjeyakumar7226
    @gajarubanjeyakumar7226 4 роки тому +4

    Thanks man, i'm a hobby c# programmer. Learned a lot.

  • @iangibblet8165
    @iangibblet8165 3 роки тому +4

    Good explanation. Easy to understand

  • @innamel_UA
    @innamel_UA 5 місяців тому

    Many Tnx. Could you please explain why did you use "Cat.Health" instead of just "health" - we`v already had as the second parameter?
    Line 25 at 10:19

  • @yavuzsylu
    @yavuzsylu 4 роки тому +6

    thanks man very good explanation for dummies like me lol , keep teaching

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

    love your work! thank you very much!

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

    Thanks, I haven't seen it done within a setter before

  • @_.-AAA-._
    @_.-AAA-._ Рік тому

    Excellent explanation of events!

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

    Thank you!

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

    Hi @ivaylokenov can you do a video on how I can dynamically subscribe to events using expression trees? The event name is passed thru as string.

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

    Thanks for a tutorial.

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

    What about for unsubscribe from the event? Is it a good idea to unsubscribe for ex. in Dispose() method

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

    crazy, thx man

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

    This one is so good.

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

    I've got a question. What if I wanted to create multiple cats and to each of them add those events args?

  • @va1r347
    @va1r347 2 роки тому +2

    What?? Health change???!!! DONT KILL THE CAT!!!!!!!!))

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

    Nice explanation ...

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

    thx :)

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

    Really , NowI understand how to use the event, CAT IS DEAD😕

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

    Thank you so much for the tutorial video! As a beginner, may I know the reason to always adding the "this." keyword? What is the purpose of adding it? Many thanks!

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

      "this" refers to the current instance of the class. For example, consider a game where you have 20 cats on screen, and all have different values for their Name property. Assume the Cat class contains the code "if (this.health

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

      @@sandsalamand3763 Thank you so so much for explaining "this", I got it now! :)

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

    Voiceover is horrible.