Read Introduction in C# - how to protect against it?

后端 未结 3 1748
[愿得一人]
[愿得一人] 2020-12-08 15:00

An article in MSDN Magazine discusses the notion of Read Introduction and gives a code sample which can be broken by it.

public class ReadIntro {
  private O         


        
3条回答
  •  不思量自难忘°
    2020-12-08 15:44

    I only skimmed the article, but it seems that what the author is looking for is that you need to declare the _obj member as volatile.

提交回复
热议问题