This sample is created during the Delegates and Events topic for learning C# features. Please see that topic for detailed steps on the code for this sample.
This sample demonstrates defining and raising events, subscribing to events, and release event handlers.
To build and run the sample, type the following three commands:
dotnet restore
dotnet build
dotnet run
dotnet restore
installs all the dependencies for this sample into the current directory.
dotnet build
creates the output assembly (or assemblies).
dotnet run
runs the output assembly.