static ThreadIDHelper() { #if NETCF Instance = new Win32ThreadIDHelper(); #else if (PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.Windows) || PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.WindowsCE) || PlatformDetector.IsCurrentOSCompatibleWith(RuntimeOS.WindowsNT) ) { Instance = new Win32ThreadIDHelper(); } else { Instance = new PortableThreadIDHelper(); } #endif }