Programmatically insert a method call on each property of a class

后端 未结 4 1307
醉酒成梦
醉酒成梦 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:13

    As Matt already mentioned, you can use aspect oriented programming. Another possibility is to use a technique called interception, as it is provided by the Unity application block.

提交回复
热议问题