.Net framework has Interlocked.Add()
methods only for int
and long
. But I need Interlock.Add()
for double
type. How can I do that?
It is not possible, which you can read in this question on stackoverflow. It also provides an article about it:
Why is there no overload of Interlocked.Add that accepts Doubles as parameters?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With