Atomic assignment of reference dimensional structures

Quick question ... Suppose I have a C # structure containing a single reference element. Are the assignments of this structure atoms in .NET? For example:

struct ReadOnlyList<T>
{
    private List<T> list;
    // other random functionality
};

I know that simple old link assignments are atomic, just curious if wrapping the whole thing in a structure has any meaning ...

thanks

+3
source share
1 answer

12.5 Atomicity of variable references

: bool, char, byte, sbyte, short, ushort, uint, int, float . , . , , , , , . , , --, , .

, , .

+6

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


All Articles