G
Guest
I am using .NET version 2.0 and implementing all my event handlers to use the
new generic type. The problem I am running into is most of my Event Arguments
are defined in a single header which requires me to place some forward
declarations in sorce files that reference these classes. The new generic
EventHandler<T> requires that T is of a type EventArgs. My question is how do
I create a forward declaration that includes the base class?
ref class MessageArgs : public EventArgs
{
public:
MessageArgs(String^ theMessage);
}
event EventHandler<MessageArgs^>^ NewMessage;
new generic type. The problem I am running into is most of my Event Arguments
are defined in a single header which requires me to place some forward
declarations in sorce files that reference these classes. The new generic
EventHandler<T> requires that T is of a type EventArgs. My question is how do
I create a forward declaration that includes the base class?
ref class MessageArgs : public EventArgs
{
public:
MessageArgs(String^ theMessage);
}
event EventHandler<MessageArgs^>^ NewMessage;