码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-01-15 10:50:01      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:

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();

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

标签:

原文地址:http://www.cnblogs.com/crazyghostvon/p/dynamicKeyword.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!