检查.NET 4.0框架代码

   static bool CheckEnvironment()
        {
            if (Environment.Version < new Version(4, 0, 30319))
            {
                MessageBox.Show("This version of Applicationrequires .NET 4.0. You are using: " + Environment.Version");
                return false;
            }
            return true;
        }

posted @ 2013-03-27 17:56  Predator  阅读(133)  评论(0编辑  收藏  举报