Thread.Unix.cs 478 B

12345678910111213
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System.Runtime.ConstrainedExecution;
  5. namespace System.Threading
  6. {
  7. public sealed partial class Thread
  8. {
  9. private static Exception GetApartmentStateChangeFailedException() => new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop);
  10. }
  11. }