一种很简单的方法就是根据IntPtr类型的Size属性来判断,
1 //IntPtr.Size在64位为8,在32位为4 2 public static Boolean Is64Bit() 3 { 4 if (IntPtr.Size == 4) 5 return false; 6 else 7 return true; 8 }
一种很简单的方法就是根据IntPtr类型的Size属性来判断,
1 //IntPtr.Size在64位为8,在32位为4 2 public static Boolean Is64Bit() 3 { 4 if (IntPtr.Size == 4) 5 return false; 6 else 7 return true; 8 }
相关文章: