您的位置:首页 > 产品设计 > UI/UE

One or more types required to compile a dynamic expression cannot be found.

2015-01-15 10:09 549 查看
This is because dynamic keyword is a new C# keyword. So we need to import Microsoft.CSharp.dll.

Here is offical document: http://msdn.microsoft.com/en-us/library/dd264736.aspx the very first sentence:

"

Visual C# 2010 introduces a new type, dynamic.

"

C# example:

dynamic d1 = 7;
dynamic d2 = "a string";
dynamic d3 = System.DateTime.Today;
dynamic d4 = System.Diagnostics.Process.GetProcesses();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐