C# EVENTS for Dummies

Поділитися
Вставка
  • Опубліковано 24 січ 2025

КОМЕНТАРІ • 29

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

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

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

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

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

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

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

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

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

    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

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

    Good explanation. Easy to understand

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

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

  • @_.-AAA-._
    @_.-AAA-._ 2 роки тому

    Excellent explanation of events!

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

    love your work! thank you very much!

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

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

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

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

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

    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.

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

    Nice explanation ...

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

    crazy, thx man

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

    This one is so good.

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

    Thanks for a tutorial.

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

    Thank you!

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

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

  • @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! :)

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

    thx :)

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

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

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

    Voiceover is horrible.