You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: src/System.Private.CoreLib/src/System/Runtime/InteropServices/WindowsRuntime/EventRegistrationTokenTable.cs
+9-12Lines changed: 9 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ public sealed class EventRegistrationTokenTable<T> where T : class
18
18
19
19
// Cached multicast delegate which will invoke all of the currently registered delegates. This
20
20
// will be accessed frequently in common coding paterns, so we don't want to calculate it repeatedly.
21
-
[AllowNull,MaybeNull]privatevolatileTm_invokeList=null!;// TODO-NULLABLE: Remove ! when nullable attributes are respected
21
+
privatevolatileT?m_invokeList=null;
22
22
23
23
publicEventRegistrationTokenTable()
24
24
{
@@ -32,8 +32,7 @@ public EventRegistrationTokenTable()
32
32
33
33
// The InvocationList property provides access to a delegate which will invoke every registered event handler
34
34
// in this table. If the property is set, the new value will replace any existing token registrations.
35
-
[MaybeNull]
36
-
publicTInvocationList
35
+
publicT?InvocationList
37
36
{
38
37
get
39
38
{
@@ -45,7 +44,7 @@ public T InvocationList
45
44
{
46
45
// The value being set replaces any of the existing values
47
46
m_tokens.Clear();
48
-
m_invokeList=null!;// TODO-NULLABLE: Remove ! when nullable attributes are respected
0 commit comments