c# - IntPtr 与 UIntPtr

标签 c# .net vb.net

这应该很简单:我到处都看到人们使用 IntPtr,我有什么理由应该改用 UIntPtr 吗?

最佳答案

似乎没有充分的理由这样做。来自文档:

Remarks

...

The IntPtr type is CLS-compliant, while the UIntPtr type is not. Only the IntPtr type is used in the common language runtime. The UIntPtr type is provided mostly to maintain architectural symmetry with the IntPtr type.

关于c# - IntPtr 与 UIntPtr,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1320296/

相关文章:

c# - 如何将 C# 代码与 Ofbiz 9 集成?

c# - 最佳 Web .net 查询生成器

vb.net - 如何调用com+组件?

c# - 如何比较多维数组是否相等?

c# - 在 void 方法中使用异步等待

c# - 在每一页检查 session ?

c# - 我如何获得巴哈马的地区和文化信息?

java - PORTABLE 和 Machine Independent 有什么区别?

mysql - SELECT WITH CALL PROCEDURE MySQL

javascript - 创建类型为 ="image"的 <input>,它重定向到另一个带参数的 aspx 页面