Class CLREventData<TObject>
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
TObjectThe 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
actionReferenceIJavaObjectRemote 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)
Implements the pattern described in https://learn.microsoft.com/en-en/dotnet/standard/garbage-collection/implementing-dispose
protected override void Dispose(bool disposing)
Parameters
disposingboolThe 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
indexintThe index to retrieve
Returns
- TReturn
The extra data at index
indexconverted toTReturn, or null if there is any extra data
Type Parameters
TReturnThe 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