Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to compute a vaule that includes dynamics
Message
De
30/08/2012 03:19:44
 
 
À
29/08/2012 16:07:45
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Divers
Thread ID:
01551847
Message ID:
01551925
Vues:
34
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform