Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic object
Message
From
22/04/2013 09:55:48
 
 
To
22/04/2013 09:42:30
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Miscellaneous
Thread ID:
01571587
Message ID:
01571590
Views:
43
>Hi
>
>I'm looking at Rick Strahls example in
>
>http://www.west-wind.com/weblog/posts/2010/Sep/13/The-dynamic-Type-in-C-Simplifies-COM-Member-Access-from-Visual-FoxPro
>
>passing an object to a c# dll as
>
>public string PassRecordObjectDynamic(dynamic FoxObject)
>
>but I'm getting an error
>
>
>Error 3 One or more types required to compile a dynamic expression cannot be found. Are you missing references to Microsoft.CSharp.dll and System.Core.dll?
>
>
>My target framework is NET 4.0 and I'm using
>
> using Microsoft.CSharp;
> using pptest.com.pperfect.adpdemo;
> using System;
> using System.Linq;
> using System.Runtime.CompilerServices;
> using System.Runtime.InteropServices;
>
>any ideas what I'm doing wrong or missing.
>
>Thanks
>
>Nick

Had to add a reference to Microsoft CSharp (like the error msg said dumbo)
Previous
Reply
Map
View

Click here to load this message in the networking platform