Table of Contents

Class JNetEventData

Namespace
MASES.JNet.Specific
Assembly
MASES.JNet.dll

Helper class able to simpify definition of data associated to events

public sealed class JNetEventData : CLREventData<JNetEventResult>, IDisposable
Inheritance
JNetEventData
Implements
Extension Methods

Constructors

JNetEventData(IJavaObject)

Initialize a new CLREventData<TObject>

public JNetEventData(IJavaObject javaObject)

Parameters

javaObject IJavaObject

Properties

HasOverride

Set to true if the method applied an override

public bool HasOverride { get; set; }

Property Value

bool

ReturnData

The object to be returned to the JVM side. This property is intentionally read-only: setting it directly is not supported because JVM-side handling raises an exception. Use SetReturnData(bool, object) to set both override state and return data in a supported way.

public object ReturnData { get; }

Property Value

object

Methods

SetReturnData(bool, object)

Helper function to set both HasOverride and ReturnData

public void SetReturnData(bool hasOverride, object retData)

Parameters

hasOverride bool

true if the method applied an override

retData object

The object to be returned to the JVM side