运行此代码后:
foreach (string drive in Environment.GetLogicalDrives())
Console.WriteLine("Drive: {0}", drive);
Console.WriteLine("OS: {0}", Environment.OSVersion);
Console.WriteLine("Processor count: {0}", Environment.ProcessorCount);
Console.WriteLine(".NET version: {0}", Environment.Version);
我明白了
当我下载并启动 .NET 安装程序时,我被告知已经安装了 4.5 版本。版本名称和实际版本号有区别吗?