private static Exception GetApartmentStateChangeFailedException() => new PlatformNotSupportedException(); private bool TrySetApartmentStateUnchecked(ApartmentState state) => state == GetApartmentState();