Click or drag to resize

CLREventData Class

Base class for event information. Extend this to manage event associated data
Inheritance Hierarchy

Namespace:  MASES.JCOBridge.C2JBridge
Assembly:  C2JBridge (in C2JBridge.dll) Version: 2.4.14.220818-82c2bf79b6e60a4d98fb4d1695305d68a91adf44
Syntax
public class CLREventData

The CLREventData type exposes the following members.

Constructors
  NameDescription
Public methodCLREventData
Initialize a new instance of CLREventData
Top
Properties
  NameDescription
Public propertyDynEventData
Dynamic accessor to the information about event information received from the JVM
Public propertyDynExtraData
A dynamic array of extra information ordered with the same order of the caller, or null if HasExtraData is
Public propertyEventData
Accessor to the information about event information received from the JVM
Public propertyExtraData
An array of extra information ordered with the same order of the caller, or null if HasExtraData is
Public propertyExtraDataLength
Returns how many Object contains extra information.
Public propertyHasExtraData
True if the event has other objects associated
Public propertyItem
Returns the indexed data
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
Examples
The following is the implementation of the Java EventObject class.
It will be used as typeparam of CLRListenerEventArgsTDataClass for the event CLRActionListener
C#
public class CLREventObjectData : CLREventData
{
   public CLREventObjectData(object actionData)
        : base(actionData)
   {
   }

   public dynamic Source { get { return DynEventData.getSource(); } }

   public override string ToString()
   {
       return DynEventData.toString();
   }
}
See Also