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.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
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