C# Events & Delegates

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 มิ.ย. 2024
  • Events are great for crossing boundary lines in your application or game without coupling components together. Objects can subscribe to an event and be notified whenever the publisher performs a specific action.
    Delegates are the building blocks of events, so listen closely and you'll learn all about them!
    ❤️ Become a Tarobro on Patreon: / tarodev
    =========
    🔔 SUBSCRIBE: bit.ly/3eqG1Z6
    🗨️ DISCORD: / discord
    ✅ MORE TUTORIALS: / tarodev
    0:00 - Delegate keyword
    3:48 - EventHandler
    4:34 - Action
    5:13 - Generic Action
    6:02 - Func
    6:40 - Practical Example
    7:50 - Static
    9:05 - Event keyword
    10:20 - UnityEvent
    12:30 - Unsubscribing
    14:50 - Decoupling
    16:20 - Delegates as parameters

ความคิดเห็น • 230