Click or drag to resize

IJVMWrapperDirectCastTo Method

Converts the origin in the instance defined from className

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.5.12.240512-4d4b2fafd3df13602ccdeccef07b026ccf8b47b0
Syntax
IJavaObjectBase CastTo(
	IJavaObjectBase origin,
	string className
)

Parameters

origin  IJavaObjectBase
The IJavaObjectBase to convert
className  String
The class name to convert to

Return Value

IJavaObjectBase
The IJavaObjectBase converted instance
Remarks
The method checks the convertibility with IsAssignableFrom(IJavaType, IJavaType)
See Also