EventArgs

EventArgs


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


Implements:

IObject 

Public:

Methods:

NameDescription
 Equals This function determines if the value passed in is the same as the current object instance. Meaning, are the Value and this object the same object in memory.

This should be overriden for different forms of equality. An example would be if this class contained a Name property and equality is determined by the names.  

 GetHashCode Returns a psuedo-unique number used to help identify this object in memory. The current method is to return the value obtained from ObjPtr. If a different method needs to be impelmented then change the method here in this function.

An override might be necessary if the hashcode should be derived from a value contained within the class.  

 ToString Returns a string representation of this object instance. The default method simply returns the application name and class name in which this class resides.

A Person class may return the persons name instead.  

Remarks

This class serves as the base class for all classes that represent event data. To create a custom event data class, create a class that implements from the EventArgs class and provide the properties to store the necessary data. The name of your custom event data class should end with EventArgs.

To pass an object that does not contain any data, use the EmptyArgs field.

See Also

Project CorLib Overview

Class EventArgs Overview