From 5ea6dce1220436cab5cfb3c6a6c0a80b92d3d975 Mon Sep 17 00:00:00 2001 From: Santiago Fernandez Madero Date: Wed, 26 Jun 2019 10:51:01 -0700 Subject: [PATCH] Fix nullable annotations for EventRegistrationTokenTable (dotnet/corefx#38942) Commit migrated from https://github.com/dotnet/corefx/commit/deb5c2bebdc7d50a9c3ef1be87aee091e56894b6 --- .../ref/System.Runtime.InteropServices.WindowsRuntime.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libraries/System.Runtime.InteropServices.WindowsRuntime/ref/System.Runtime.InteropServices.WindowsRuntime.cs b/src/libraries/System.Runtime.InteropServices.WindowsRuntime/ref/System.Runtime.InteropServices.WindowsRuntime.cs index edd4a16..8c61a5f 100644 --- a/src/libraries/System.Runtime.InteropServices.WindowsRuntime/ref/System.Runtime.InteropServices.WindowsRuntime.cs +++ b/src/libraries/System.Runtime.InteropServices.WindowsRuntime/ref/System.Runtime.InteropServices.WindowsRuntime.cs @@ -24,12 +24,11 @@ namespace System.Runtime.InteropServices.WindowsRuntime public sealed partial class EventRegistrationTokenTable where T : class { public EventRegistrationTokenTable() { } - [System.Diagnostics.CodeAnalysis.MaybeNullAttribute] - public T InvocationList { get { throw null; } set { } } - public System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken AddEventHandler(T handler) { throw null; } + public T? InvocationList { get { throw null; } set { } } + public System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken AddEventHandler(T? handler) { throw null; } public static System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable GetOrCreateEventRegistrationTokenTable(ref System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable? refEventTable) { throw null; } public void RemoveEventHandler(System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken token) { } - public void RemoveEventHandler(T handler) { } + public void RemoveEventHandler(T? handler) { } } public partial interface IActivationFactory { -- 2.7.4