Compiler Error C3353
'delegate' : a delegate can only be created from a global function or a member function of a managed or WinRT type
Delegates, declared with the delegate keyword, can only be declared at global scope.
The following sample generates C3353:
// C3353.cpp
// compile with: /clr
delegate int f; // C3353
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for