您好操作系统用C#和放大器;单声道? [英] Hello OS with C# & mono?
本文介绍了您好操作系统用C#和放大器;单声道?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法来确定哪些操作系统,我们运行的是单声道的,用C#code?
Is there a way to identify in which OS we are running mono, with C# code?
某种形式的Hello World,但不是使用固定的字符串作为输出使用目前的操作系统?
Some sort of Hello World, but instead of using a fixed string as an output use the current OS?
推荐答案
尝试 System.Environment.OSVersion
您也可以检测,如果你的code为单声道或MS.NET下运行:
You can also detect if your code is run under Mono or MS.NET:
if (Type.GetType("Mono.Runtime") != null)
{
// we're on Mono
IsMono = true;
}
else
IsMono = false;
这篇关于您好操作系统用C#和放大器;单声道?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文