加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – IntPtr与UIntPtr

发布时间:2020-12-15 06:34:03 所属栏目:百科 来源:网络整理
导读:这应该很简单:我看到人们使用IntPtr的任何地方,是否有任何理由我应该使用UIntPtr? 解决方法 似乎不会有一个很好的理由.从文档: Remarks … The IntPtr type is CLS-compliant, while the UIntPtr type is not. Only the IntPtr type is used in the commo
这应该很简单:我看到人们使用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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读