Skip to content

mathieu-suen-sonarsource/events-cs-example-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C# Events Sample

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.

Key Features

This sample demonstrates defining and raising events, subscribing to events, and release event handlers.

Build and Run

To build and run the sample, type the following two commands:

dotnet restore
dotnet run

dotnet restore restores the dependencies for this sample.

dotnet run builds the sample and runs the output assembly.

Note: Starting with .NET Core 2.0 SDK, you don't have to run dotnet restore because it's run implicitly by all commands that require a restore to occur, such as dotnet new, dotnet build and dotnet run. It's still a valid command in certain scenarios where doing an explicit restore makes sense, such as continuous integration builds in Azure DevOps Services or in build systems that need to explicitly control the time at which the restore occurs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages