Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to compute a vaule that includes dynamics
Message
From
29/08/2012 13:36:53
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
How to compute a vaule that includes dynamics
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Miscellaneous
Thread ID:
01551847
Message ID:
01551847
Views:
60
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?

David
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Next
Reply
Map
View

Click here to load this message in the networking platform