// default is false, set 1 for true.
private int _threadSafeBoolBackValue = 0;

public bool ThreadSafeBool
{
    get { return (Interlocked.CompareExchange(ref _threadSafeBoolBackValue11) == 1); }
    set
    {
        if (valueInterlocked.CompareExchange(ref _threadSafeBoolBackValue10);
        else Interlocked.CompareExchange(ref _threadSafeBoolBackValue01);
    }
}


vscode에서 코드복사한거


갤에다 붙여넣으니까 서식도 그대로 적용되네 ㅇㅅㅇ