Click or drag to resize

JVMBridgeBaseWrapsTReturn(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.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
public static TReturn Wraps<TReturn>(
	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 TReturn instance and leaves javaObject alive, to Dispose the javaObject

Type Parameters

TReturn
The return type extended or implmeneted from type: in some condition can be helpful to return a different TReturn

Return Value

TReturn
An newly initialized TReturn
See Also