Table of Contents

Class CLREventData<TObject>

Namespace
MASES.JCOBridge.C2JBridge
Assembly
C2JBridge.dll

A class for event information, it extends CLREventData, adding management of simple object like bool, string, byte, and so on/>

public class CLREventData<TObject> : CLREventData, IDisposable

Type Parameters

TObject

The data associated to the event: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types

Inheritance
CLREventData<TObject>
Implements
Inherited Members
Extension Methods

Constructors

CLREventData(IJavaObject)

Initialize a new CLREventData<TObject>

public CLREventData(IJavaObject actionReference)

Parameters

actionReference IJavaObject

Remote object associated to the event

Properties

TypedEventData

The data associated to the event converted into TObject

public virtual TObject TypedEventData { get; }

Property Value

TObject

Methods

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

The disposing parameter is a bool that indicates whether the method call comes from a Dispose() method (its value is true) or from a finalizer (its value is false)

GetAt<TReturn>(int)

The extra data associated to the event converted into TReturn

public TReturn GetAt<TReturn>(int index)

Parameters

index int

The index to retrieve

Returns

TReturn

The extra data at index index converted to TReturn, or null if there is any extra data

Type Parameters

TReturn

The return type expected: class implementing IJVMBridgeBase, IJavaObject, Enum, primitive types or array of primitives types

Exceptions

InvalidOperationException

If there are any extra information to retrieve

ArgumentOutOfRangeException

If the index is out of the possible indexes