Skip to content

Commit d447e13

Browse files
fix signature for nullability
and avoid warning
1 parent b4a8b42 commit d447e13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets/csharp/System/EventArgs/Overview/programwithdata.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static void Main(string[] args)
1818
}
1919
}
2020

21-
static void c_ThresholdReached(object sender, ThresholdReachedEventArgs e)
21+
static void c_ThresholdReached(object? sender, ThresholdReachedEventArgs e)
2222
{
2323
Console.WriteLine("The threshold of {0} was reached at {1}.", e.Threshold, e.TimeReached);
2424
Environment.Exit(0);

0 commit comments

Comments
 (0)