Compiler Error C3765
'event': cannot define an event in a class/struct 'type' marked as an event_receiver
If a class is marked with the event_receiver attribute, the class cannot contain an __event declaration.
The following sample generates C3765:
// C3765.cpp
[event_receiver(native)]
struct ER2 {
__event void f(); // C3765
__event void b(int); // C3765
};
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