日期:2014-05-17 浏览次数:20933 次
class Program
{
static void Main(string[] args)
{
Console.WriteLine(" OS Version: {0}", Environment.OSVersion);
Console.WriteLine(" CLR Version: {0} ( {1} )", Environment.Version, RuntimeFramework.CurrentFramework);
Console.WriteLine("Default Encoding: {0}", Encoding.Default);
Console.WriteLine();
Console.WriteLine("Available Frameworks:");
foreach (var frame in RuntimeFramework.AvailableFrameworks) Console.WriteLine(" " + frame);
Console.ReadLine();
}
}
public enum RuntimeType
{
Any, // Any supported runtime framework
Net, // Microsoft .NET Framework