Skip to content

Commit 9d359bd

Browse files
bkoelmandennisdoomen
authored andcommitted
fix example (#137)
1 parent a202b1d commit 9d359bd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

_pages/1200_MiscellaneousDesignGuidelines.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ When throwing or handling exceptions in code that uses `async`/`await` or a `Tas
3333
An event that has no subscribers is `null`. So before invoking, always make sure that the delegate list represented by the event variable is not `null`.
3434
Invoke using the null conditional operator, because it additionally prevents conflicting changes to the delegate list from concurrent threads.
3535

36-
event EventHandler Notify;
37-
38-
protected virtual void OnNotify(NotifyEventArgs args)
36+
event EventHandler<NotifyEventArgs> Notify;
37+
38+
protected virtual void OnNotify(NotifyEventArgs args)
3939
{
4040
Notify?.Invoke(this, args);
4141
}
@@ -84,7 +84,7 @@ Instead of casting to and from the object type in generic types or methods, use
8484
### <a name="av1250"></a> Evaluate the result of a LINQ expression before returning it (AV1250) ![](/assets/images/1.png)
8585

8686
Consider the following code snippet
87-
87+
8888
public IEnumerable GetGoldMemberCustomers()
8989
{
9090
const decimal GoldMemberThresholdInEuro = 1_000_000;

0 commit comments

Comments
 (0)