Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.Net フレームワークにはInterlocked.Add()、 と のメソッドしかintありませんlong。しかし、私はタイプが必要Interlock.Add()ですdouble。どうやってやるの?
Interlocked.Add()
int
long
Interlock.Add()
double
これは、stackoverflow のこの質問で読むことができます。また、それに関する記事も提供しています。
Doubles をパラメーターとして受け入れる Interlocked.Add のオーバーロードがないのはなぜですか?