it doesn't seem like there is support for Action and Func delegates in the System namespace in C ++ / CLI. At least not for a few general arguments, such as:
System::Action<int, int>^ action = nullptr; System::Func<int, int>^ func = nullptr;
Both results lead to errors, for example:
error C2977: 'System::Action' : too many generic arguments error C2955: 'System::Action' : use of class generic requires generic argument list
Only one argument Action:
System::Action<int>^ action = nullptr;
Does anyone know why or what is missing to make this work. I am using Visual Studio 2008, and the project has a target structure of 3.5.
source share