Fix GetApartmentState value on Unix to be Unknown (dotnet/coreclr#22928)
authorStephen Toub <stoub@microsoft.com>
Thu, 28 Feb 2019 21:42:27 +0000 (16:42 -0500)
committerGitHub <noreply@github.com>
Thu, 28 Feb 2019 21:42:27 +0000 (16:42 -0500)
commit39cde5beba54099e656312f1c0532df68fb4078d
tree18d8339fbeaa9d06d0d34f4e3df52a64e214305e
parentf22f0125cffcabdfa87a521896924d7aa7d3d960
Fix GetApartmentState value on Unix to be Unknown (dotnet/coreclr#22928)

* Fix GetApartmentState value on Unix to be Unknown

The code in corefx is returning ApartmentState.Unknown on Unix.  This new coreclr implementation should do the same.

* Fix visibility on TrySetApartmentStateUnchecked

Commit migrated from https://github.com/dotnet/coreclr/commit/0a93b5136621040b93b9f805e26e7d27d11dc955
src/coreclr/src/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs