Why is the use of reflection in .NET recommended?

后端 未结 9 649
再見小時候
再見小時候 2020-11-30 22:25

Is it definitely a good practice to use it?

What are some possible situations in a project that need reflection?

9条回答
  •  北海茫月
    2020-11-30 22:54

    As mentioned above, performance will take a hit.

    Another great advantage is that you can dynamically load assemblies, perform property manipulation even though you may not have the scope to see what to change, etc.

    The reasons to use this are plenty. Here is an introduction if you need.

提交回复
热议问题