Пример #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
        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);
            }
        }