Programmatically insert a method call on each property of a class

后端 未结 4 1313
醉酒成梦
醉酒成梦 2021-02-01 20:30

My question is based on this article.

Basically a class can implement a Freezable method to make sure that no properties can be changed once the object enters the Frozen

4条回答
  •  情深已故
    2021-02-01 21:19

    as Matt said with the addition of writing an FxCop rule to check for the method call

提交回复
热议问题