Click or drag to resize

IJVMWrapperDirectConvert(IJavaObjectBase, String, Boolean) Method

Converts the origin in an IJavaObjectBase instance defined from className

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

Parameters

origin  IJavaObjectBase
The IJavaObjectBase to convert
className  String
The class name 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