// See https://aka.ms/new-console-template for more information var dotnetStandard = new List(){ "1.0", "1.1", "1.2", "1.3", "1.4", "1.5", "1.6", "2.0", "2.1" }; var dotnetImplements = new Dictionary>(){ [".NET 和.NET Core"]=new List(){"1.0", "1.0", "1.0", "1.0", "1.0", "1.0", "1.0", "2.0", "3.0"}, [".NET Framework"]=new List(){"1", "4.5", "4.5", "4.5.1", "4.6", "4.6.1", "4.6.1^2", "4.6.1", "2", "4.6.1^2", "N/A3"}, ["Mono"]=new List(){"4.6", "4.6", "4.6", "4.6", "4.6", "4.6", "4.6", "5.4", "6.4"}, ["Xamarin.iOS"]=new List(){"10.0", "10.0", "10.0", "10.0", "10.0", "10.0", "10.0", "10.14", "12.16"}, ["Xamarin.Mac"]=new List(){"3.0", "3.0", "3.0", "3.0", "3.0", "3.0", "3.0", "3.8", "5.16"}, ["Xamarin.Android"]=new List(){"7.0", "7.0", "7.0", "7.0", "7.0", "7.0", "7.0", "8.0", "10.0"}, ["通用 Windows 平台"]=new List(){"10.0", "10.0", "10.0", "10.0", "10.0", "10.0.16299", "10.0.16299", "10.0.16299", "待定"}, ["Unity"]=new List(){"2018/1", "2018/1", "2018/1", "2018/1", "2018/1", "2018/1", "2018/1", "2018/1", "2021.2"} }; var dotnetStandardQuery = new Dictionary>(); int i=0; foreach(var standardVersion in dotnetStandard){ var lowerSupportImplementVersions = new List(); foreach(var dotnetImplement in dotnetImplements){ lowerSupportImplementVersions.Add(dotnetImplement.Key+",版本:"+dotnetImplement.Value[i]); } dotnetStandardQuery.Add(standardVersion, lowerSupportImplementVersions); i++; } Console.WriteLine("以下各种.NET的实现,支持了 .NET Standard 2.1的最低版本是:"); Console.WriteLine("===="); foreach(var lowlowerSupportImplementVersion in dotnetStandardQuery["2.1"]){ Console.WriteLine("* "+lowlowerSupportImplementVersion); }