Click or drag to resize

IJVMWrapperDirectConvert(IJavaObjectBase, IJavaType, Boolean) Method

Converts the origin in an IJavaObjectBase instance defined from clazz

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
IJavaObjectBase Convert(
	IJavaObjectBase origin,
	IJavaType clazz,
	bool bypassConvertibilityCheck = false
)

Parameters

origin  IJavaObjectBase
The IJavaObjectBase to convert
clazz  IJavaType
The IJavaType to convert to
bypassConvertibilityCheck  Boolean  (Optional)
Default is , set to to verify convertibility

Return Value

IJavaObjectBase
The IJavaObjectBase converted instance
Remarks
The method checks the convertibility with IsAssignableFrom(IJavaType, IJavaType) and IsInstanceOf(IJavaObjectBase, IJavaType). The original instance in origin cannot be used after the invocation of this method.
See Also