Click or drag to resize

IJavaObjectBaseToPrimitiveTReturn Method

Converts this IJavaObjectBase to a primitive value.

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
TReturn ToPrimitive<TReturn>()

Type Parameters

TReturn
The primitive type to be returned.

Return Value

TReturn
This instance converted to TReturn.
Exceptions
ExceptionCondition
InvalidOperationException Thrown by IJavaObject implementations when the underlying JVM type is not convertible to TReturn. Not meaningful when called on an IJavaArray instance.
See Also