# if !WINDOWS_WSA && !WINDOWS_UWP using System.Threading; namespace Foundation.Tasks { public partial class TaskManager { /// /// Checks if this is the main thread /// public static bool IsMainThread { get { return Thread.CurrentThread == MainThread; } } /// /// The Main Thread /// public static Thread MainThread { get; protected set; } /// /// The Current Thread /// public static Thread CurrentThread { get { return Thread.CurrentThread; } } } } #endif