Click or drag to resize

JVMBridgeBaseWraps(Type, IJavaObject, String, Boolean) Method

Wraps the javaObject with a new type class

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
public static IJVMBridgeBase Wraps(
	Type type,
	IJavaObject javaObject,
	string className,
	bool leaveOriginalOpen = true
)

Parameters

type  Type
The Type implementing IJVMBridgeBase to be instantiated
javaObject  IJavaObject
The BridgeInstance to be used
className  String
The name of destination class, null or empty to do not apply class name change
leaveOriginalOpen  Boolean  (Optional)
to wraps in a new type instance and leaves javaObject alive, to Dispose the javaObject

Return Value

IJVMBridgeBase
A newly initialized type
See Also