- this demo console app shows simple event sample
- using Action/Func as well as EventHandler and EventArgs
- Delegate is a kind of pointer to callback function
- Event is improved version of Delegate for better control
cd ConsoleEventDemo
dotnet new sln -n ConsoleEventDemo
dotnet new console -n EventDemoApp
dotnet sln ConsoleEventDemo.sln add **/*.csproj
cd EventDemoApp
dotnet add package Microsoft.CodeAnalysis.FxCopAnalyzerscd EventDemoApp
dotnet restore
dotnet build
dotnet run