Click or drag to resize

CLREventData Class

Base class for event information. Extend this to manage event associated data
Inheritance Hierarchy
SystemObject
  MASES.JCOBridge.C2JBridgeCLREventData
    MASES.JCOBridge.C2JBridgeCLREventDataTObject

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.5.7.230503-5b2d77f31cef8c4bcaa15ef3ad392561e9e38aa6
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 methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn Converts a generic object
(Defined by JCOBridgeExtensions)
Public Extension MethodToTObject Converts data associated to CLREventData into TObject
(Defined by JCOBridgeExtensions)
Public Extension MethodToTObject Converts extra data associated to CLREventData into TObject
(Defined by JCOBridgeExtensions)
Public Extension MethodToNative Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions)
Top
Example
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