Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to compute a vaule that includes dynamics
Message
From
30/08/2012 03:19:44
 
 
To
29/08/2012 16:07:45
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Miscellaneous
Thread ID:
01551847
Message ID:
01551925
Views:
35
Then probably missing a reference to Microsoft.Csharp.dll .....

>Yes, I'm using .NET 4.0 - I'm using dynamics in other contexts and all is well.
>
>>>Here's another problem - I have code of the form:
>>>
>>>dynamic newValue = a.SomeFunction(parm1, parm2) * 3;
>>>
>>>where SomeFunction() is returning a dynamic value (because it can return values of differing types). The documentation seems to say that this should work, but I am getting a compiler error saying that "One or more types required to compile a dynamic expression cannot be found. Are you missing a reference?" I'm not sure how to clear this message.
>>>
>>>Any clues?
>>
>>Maybe targeting a framework version that does not support dynamic ? (check that you are targeting .Net 4)
Previous
Reply
Map
View

Click here to load this message in the networking platform