DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
DotNetDupe::System::EventArgs Class Reference

Represents the base class for classes that contain event data, and provides a value to use for events that do not include event data. More...

#include <EventArgs.h>

Inheritance diagram for DotNetDupe::System::EventArgs:

Public Member Functions

 EventArgs ()
 Initializes a new instance of the EventArgs class.
 ~EventArgs () override=default
 Virtual destructor for polymorphic event payload cleanup.
Public Member Functions inherited from DotNetDupe::System::Object
virtual ~Object ()=default
 Virtual destructor ensuring polymorphic cleanup.
virtual bool Equals (const Object &obj) const
 Determines whether the specified Object is equal to the current Object.
virtual int GetHashCode () const
 Serves as the default hash function.
bool operator== (const Object &obj) const
 Determines reference equality between two objects.
char * ToStringA () const
 Returns narrow-character string representation.
wchar_t * ToStringW () const
 Returns wide-character string representation.

Static Public Member Functions

static const EventArgsEmpty ()
 Provides a value to use with events that do not have event data.
Static Public Member Functions inherited from DotNetDupe::System::Object
static bool Equals (const Object &obj1, const Object &obj2)
 Static helper determining whether two object instances are equal.

Detailed Description

Represents the base class for classes that contain event data, and provides a value to use for events that do not include event data.

Note
Conforms to ECMA-335 Partition IV Section 5.21 (System.EventArgs).

Definition at line 17 of file EventArgs.h.

Constructor & Destructor Documentation

◆ EventArgs()

DotNetDupe::System::EventArgs::EventArgs ( )

Initializes a new instance of the EventArgs class.

Initialize empty event arguments payload.

Definition at line 7 of file EventArgs.cpp.

Referenced by ~EventArgs(), and Empty().

◆ ~EventArgs()

DotNetDupe::System::EventArgs::~EventArgs ( )
overridedefault

Virtual destructor for polymorphic event payload cleanup.

References EventArgs(), DOTNETDUPE_API, and Empty().

Member Function Documentation

◆ Empty()

const EventArgs & DotNetDupe::System::EventArgs::Empty ( )
static

Provides a value to use with events that do not have event data.

Returns
A reference to an empty EventArgs singleton instance.

Return static immutable empty event arguments singleton.

Definition at line 11 of file EventArgs.cpp.

References EventArgs().

Referenced by ~EventArgs().


The documentation for this class was generated from the following files: