I have delegate and event in my .h file
delegate void ResponseReceivedHandler(System::Object^ sender, WhoisEventArgs^ e);
event ResponseReceivedHandler^ ResponseReceived;
somewhere in my code I want to check if event is nullptr
or no, but when I write
EDITED:
if (this->ResponseReceived != nullptr)
{
this->ResponseReceived(this, e);
}
Error occurred
Error 1 error C3918: usage requires 'VT::WhoisClient::WhoisRequest::ResponseReceived' to be a data member c:\Users\ViToBrothers\Desktop\ViTo Projects\VT.WhoisClient\VT.WhoisClient\VT.WhoisRequest.cpp 50
What can I do ?