System::EventHandler< TEventArgs > Class Template Reference

Represents a method that reacts to and processes an event. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type. More...

Inherits MulticastDelegate< void(System::SharedPtr< Object >, TEventArgs)>.

Public Member Functions

 EventHandler ()
 Constructor. More...
 
 EventHandler (std::nullptr_t)
 Null-object constructor. More...
 

Detailed Description

template<class TEventArgs = SharedPtr<EventArgs>>
class System::EventHandler< TEventArgs >

Represents a method that reacts to and processes an event. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.

Template Parameters
TEventArgsThe type of the argument that represents the context of the event

Constructor & Destructor Documentation

◆ EventHandler() [1/2]

template<class TEventArgs = SharedPtr<EventArgs>>
System::EventHandler< TEventArgs >::EventHandler ( )
inline

Constructor.

◆ EventHandler() [2/2]

template<class TEventArgs = SharedPtr<EventArgs>>
System::EventHandler< TEventArgs >::EventHandler ( std::nullptr_t  )
inline

Null-object constructor.