public static bool IsOSPlatform(OSPlatform osPlatform) { string name = s_osPlatformName ??= Interop.Sys.GetUnixName(); return(osPlatform.Equals(name)); }