From a1e65c05594ccdc23f744d0a9fa0b03af176a85a Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Mon, 1 Apr 2019 21:03:56 +0200 Subject: [PATCH] [netcore] Fix TrySetApartmentStateUnchecked return value --- mcs/class/System.Private.CoreLib/System.Threading/Thread.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcs/class/System.Private.CoreLib/System.Threading/Thread.cs b/mcs/class/System.Private.CoreLib/System.Threading/Thread.cs index 6ac0c322dda..58e42a7d2b5 100644 --- a/mcs/class/System.Private.CoreLib/System.Threading/Thread.cs +++ b/mcs/class/System.Private.CoreLib/System.Threading/Thread.cs @@ -255,7 +255,7 @@ namespace System.Threading return YieldInternal (); } - public bool TrySetApartmentStateUnchecked (ApartmentState state) => false; + public bool TrySetApartmentStateUnchecked (ApartmentState state) => state == ApartmentState.Unknown; ThreadState ValidateThreadState () { -- 2.11.4.GIT