.net - C++/CLI use of Action<...,...> and Func<...> unsupported? -


It does not appear that C ++ / CLI has support for Action and Funk representatives in the system namespace. Not for at least one of the more common arguments:

  System :: Action & lt; Int, int & gt; ^ ^ Action = nullptr; System :: Fun & lt; Int, int & gt; ^ Func = nullptr; Results in both errors:  
  Error C2977: 'System :: Action': Very common logic error C2955: 'System :: Action' Common logic list is required for the use of general category  

Single logic function only:

  System :: Action & lt; Int & gt; ^ ^ Action = nullptr;  

Anyone knows, why or what is missing to do this work. I am using Visual Studio 2008 and the target framework is 3.5 in this project.

Action based on the framework version you are using and < Code> Func types are different.

In 3.5 framework, there are all definitions in Func (not normal or normal) System.Core.dll. It is also true for versions of verb with 2 or more common parameters action and action < T1, T2 & gt; Although there are mscorlib in.

4.0 Definition includes all the definitions of Func and action mscorlib in the system that contains type forwarders. The core which now points back to the MScLibb.

The Silverlight 4.0 3.5 framework is close to the resolution.

Ensure that you have a reference to the appropriate DLL for your solution.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -