c# – Interlock.Add()for double
发布时间:2020-12-15 07:51:18 所属栏目:百科 来源:网络整理
导读:参见英文答案 Why is there no overload of Interlocked.Add that accepts Doubles as parameters?4个 .Net框架只有int和long的 Interlocked.Add() 方法.但我需要Interlock.Add()为double类型.我怎样才能做到这一点? 解决方法 这是不可能的,您可以在stackov
参见英文答案 >
Why is there no overload of Interlocked.Add that accepts Doubles as parameters?4个
.Net框架只有int和long的 Interlocked.Add() 方法.但我需要Interlock.Add()为double类型.我怎样才能做到这一点?
解决方法
这是不可能的,您可以在stackoverflow上阅读此问题.它还提供了一篇关于它的文章:
Why is there no overload of Interlocked.Add that accepts Doubles as parameters? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |