checking it the current os is a 32bit or 64bit version 检查操作系统是32位还是64位

            if (System.IntPtr.Size==4)
            {
                Console.WriteLine("32bit os");
            }
            if (System.IntPtr.Size == 8)
            {
                Console.WriteLine("64bit os");
            }
原文地址:https://www.cnblogs.com/zyip/p/3684948.html