What does ----s mean in the context of StringBuilder.ToString()?

前端 未结 4 1830
眼角桃花
眼角桃花 2020-12-15 03:33

The Reference Source page for stringbuilder.cs has this comment in the ToString method:

if (chunk.m_ChunkLength > 0)
{
    // Copy these int         


        
4条回答
  •  自闭症患者
    2020-12-15 04:27

    In the CoreCLR repository you have a fuller quote:

    Copy these into local variables so that they are stable even in the presence of race conditions

    Github

    Basically: it's a threading consideration.

提交回复
热议问题