/// <summary> /// Initializes static members of the ThreadIDHelper class. /// </summary> static ThreadIDHelper() { if (PlatformDetector.IsWin32) { Instance = new Win32ThreadIDHelper(); } else { Instance = new PortableThreadIDHelper(); } }
/// <summary> /// Initializes static members of the ThreadIDHelper class. /// </summary> static ThreadIDHelper() { #if !SILVERLIGHT && !__IOS__ && !__ANDROID__ && !NETSTANDARD if (PlatformDetector.IsWin32) { Instance = new Win32ThreadIDHelper(); } else #endif { Instance = new PortableThreadIDHelper(); } }
/// <summary> /// Initializes static members of the ThreadIDHelper class. /// </summary> static ThreadIDHelper() { #if NET_CF Instance = new Win32ThreadIDHelper(); #else if (PlatformDetector.IsWin32) { Instance = new Win32ThreadIDHelper(); } else { Instance = new PortableThreadIDHelper(); } #endif }
/// <summary> /// Initializes static members of the ThreadIDHelper class. /// </summary> static ThreadIDHelper() { #if NET_CF 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 }