一种很简单的方法就是根据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 }
View Code

相关文章:

  • 2021-11-12
  • 2021-11-29
  • 2021-11-10
  • 2021-11-29
  • 2021-12-30
  • 2021-12-09
  • 2022-12-23
  • 2021-06-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-12-25
  • 2021-08-17
  • 2022-12-23
相关资源
相似解决方案