Click or drag to resize

IJavaObjectBaseToPrimitive 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
Object ToPrimitive()

Return Value

Object
When called on an IJavaObject instance, returns the underlying JVM primitive value as a .NET object. When called on an IJavaArray instance, returns the array contents converted to the corresponding .NET representation (native arrays, object arrays, etc.).
Exceptions
ExceptionCondition
InvalidOperationException Thrown by IJavaObject implementations when the underlying JVM type is not convertible to a primitive value.
See Also