Fix Thread.ExecutionContext breaking change (#22882)
authorStephen Toub <stoub@microsoft.com>
Wed, 27 Feb 2019 18:16:11 +0000 (13:16 -0500)
committerGitHub <noreply@github.com>
Wed, 27 Feb 2019 18:16:11 +0000 (13:16 -0500)
Its getter is a public API and can't be made internal.

src/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs

index d4b0015..7efa1b2 100644 (file)
@@ -254,10 +254,10 @@ namespace System.Threading
             }
         }
 
-        internal ExecutionContext ExecutionContext
+        public ExecutionContext ExecutionContext
         {
             get { return m_ExecutionContext; }
-            set { m_ExecutionContext = value; }
+            internal set { m_ExecutionContext = value; }
         }
 
         internal SynchronizationContext SynchronizationContext