C#4.0“动态”关键字的优点和缺点 [英] Advantages and Disadvantages of C# 4.0 'dynamic' keyword?
本文介绍了C#4.0“动态”关键字的优点和缺点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经学习并检查了C#4中 dynamic
关键字的优点。
I have learned and checked the advantages of dynamic
keyword in C# 4.
任何身体都可以告诉我这个的缺点。意味着动态
vs Var
/ 对象
/ 反思
???
Can any body tell me the disadvantages of this. Means dynamic
vs Var
/Object
/reflection
???
哪个东西比较多。动态在运行时更强大吗?
Which thing is batter more. Is dynamic
more powerful at run time??
推荐答案
不完全是var vs动态,但以下SO链接讨论反射与动态。退房:动态vs Var / Object /反射
Not exactly var vs dynamic but the following SO link discuss reflection vs dynamic. Check Out : dynamic vs Var/Object/reflection
这篇关于C#4.0“动态”关键字的优点和缺点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文