Unsigned Blocked Reads

What is the reason Interlocked.Read () is blocked only for Int64 and not for UInt64? I would not think that there is a difference between the two types.

+3
source share
1 answer

The class Interlockedis defined in mscorlibwhich CLS-Compliant and UInt32and UInt64for better or worse, not CLS-Compliant.

As to why they are not compatible with CLS, see this SO article:

+3
source

Source: https://habr.com/ru/post/1783048/


All Articles