C# - Class Callbacks (Communicating between multiple classes)

preview_player
Показать описание
I should point out im not a "professional" at C#, i just do it for a hobby and want to help others learn :) So if i get something wrong... welp :/.
This video shows how 2 classes can communicate via each other. a class called thing1 creates an instance of a class called thing2. thing1 can talk to thing2 but thing2 cant talk to thing1.
So to fix that, thing 2 adds a method thingy as a callback to thing1, which thing1 can "hook" onto. So basically, when thing2 calls that method with a string parameter, it does some c# callback magic and runs the "Hooked" method in thing1 with the string parameter.

Song: Invincible - YouTube Audio Library
Рекомендации по теме
Комментарии
Автор

how can i add thing1 and thing2 on VSCode

BaoLe-zx
visit shbcf.ru