Why are expression trees safer than reflection?

后端 未结 4 1565
感动是毒
感动是毒 2021-02-05 11:55

In this answer to the question of the fastest way to determine if a property contains a given attribute, user Darin Dimitrov posited that expression trees are safer than reflect

4条回答
  •  梦毁少年i
    2021-02-05 12:49

    From my limited knowledge of .NET the expression tree way seems to do type checking.

提交回复
热议问题