Cached Property: Easier way?

前端 未结 7 2081
傲寒
傲寒 2021-01-01 10:00

I have a object with properties that are expensive to compute, so they are only calculated on first access and then cached.

 private List notes;
         


        
7条回答
  •  北荒
    北荒 (楼主)
    2021-01-01 10:43

    Looks pretty standard to me. What you are doing is fine.

提交回复
热议问题