示例#1
0
        private static void CheckVersion()
        {
            var frameWorks = new FrameworksVersionCollection();

            foreach (var frameWork in frameWorks)
            {
                MessageBox(IntPtr.Zero, frameWork.ToString(), "Caption", MessageBoxOptions.Ok);
            }
        }
示例#2
0
文件: OtherTests.cs 项目: minskowl/MY
        public void FrameworksVersionTest()
        {
            //var type = typeof (InvestmentStrategy);
            //var array=Enum.GetValues(type);
            //var result = array.Cast<Enum>();

            //var res=result.Except(new Enum[] {InvestmentStrategy.Undefined});

            var collection = new FrameworksVersionCollection();

            foreach (var version in collection)
            {
                Console.WriteLine(version);
            }
        }