diff --git a/11. Delegates and Events.md b/11. Delegates and Events.md index 8369c33..66f284c 100644 --- a/11. Delegates and Events.md +++ b/11. Delegates and Events.md @@ -16,8 +16,9 @@ Events # Delegates -* __Delegates __ are reference type variables that hold a __reference to a method__ or multiple methods - * Class objects hold a reference to a class instance, delegate objects hold a reference to a method / methods +* [Delegates](https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/delegates/) are reference type variables that hold a *__reference to a method__* or multiple methods + * Class objects hold a reference to a class instance + * Delegate objects hold a reference to a method / methods * Similar to function pointers in C and C++, or how any function in JavaScript works * Allows for methods to be passed as variables, useful for creating, for example, events @@ -25,7 +26,7 @@ Events Declare a delegate using the following syntax: -delegate \ \(\); +delegate (); Example: