C# Does an empty lock block get “optimized” away?

后端 未结 0 1906
滥情空心
滥情空心 2021-01-31 14:53

I couldn\'t find any information on whether the C# compiler or JIT will remove a lock statement with no code inside. Will this always generate and execute the Monitor.Ente

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