You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
519 B

#if !NET20
using System;
using System.Runtime.InteropServices;
namespace Apewer.WebSocket
{
internal static class Runtime
{
public static bool IsRunningOnMono()
{
return Type.GetType("Mono.Runtime") != null;
}
public static bool IsRunningOnWindows()
{
//#if NET45 || NET40
return true;
//#else
//return (RuntimeInformation.IsOSPlatform(OSPlatform.Windows));
//#endif
}
}
}
#endif