Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/csharp/events-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ You subscribe to an event by using the `+=` operator:
```csharp
EventHandler<FileListArgs> onProgress = (sender, eventArgs) =>
Console.WriteLine(eventArgs.FoundFile);
lister.Progress += onProgress;

fileLister.Progress += onProgress;
```

The handler method typically is the prefix 'On' followed
Expand All @@ -102,7 +103,7 @@ by the event name, as shown above.
You unsubscribe using the `-=` operator:

```csharp
lister.Progress -= onProgress;
fileLister.Progress -= onProgress;
```

It's important to note that I declared a local variable for the expression that
Expand Down