C# assignment thread safe

后端 未结 0 643
感情败类
感情败类 2021-01-31 17:47

Is the following assignment code thread safe?

public Stream Stream
{
    get
    {
        return stream ?? (stream = new NetworkStream(Socket));
    }
    set
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题