How will you use the C# 4 dynamic type?

后端 未结 6 1814
余生分开走
余生分开走 2020-12-29 05:33

C# 4 will contain a new dynamic keyword that will bring dynamic language features into C#.

How do you plan to use it in your own code, what pattern woul

6条回答
  •  盖世英雄少女心
    2020-12-29 06:14

    The dynamic keyword is all about simplifying the code required for two scenarios:

    • C# to COM interop
    • C# to dynamic language (JavaScript, etc.) interop

    While it could be used outside of those scenarios, it probably shouldn't be.

提交回复
热议问题