| JVMBridgeBaseWrapsTReturn, TConverter(Type, IJavaObject) Method |
Wraps the javaObject with a new type class
Namespace: MASES.JCOBridge.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.5.12.240512-4d4b2fafd3df13602ccdeccef07b026ccf8b47b0
Syntax public static TReturn Wraps<TReturn, TConverter>(
Type type,
IJavaObject javaObject
)
where TConverter : new(), Object, IJVMBridgeBaseConvert<Object, TReturn>
Public Shared Function Wraps(Of TReturn, TConverter As {New, Object, IJVMBridgeBaseConvert(Of Object, TReturn)}) (
type As Type,
javaObject As IJavaObject
) As TReturn
Parameters
- type Type
- The Type implementing IJVMBridgeBase to be instantiated
- javaObject IJavaObject
- The BridgeInstance to be used
Type Parameters
- TReturn
- The return type extended or implmeneted from type: in some condition can be helpful to return a different TReturn
- TConverter
- The converter to be used to convert from instance of type to TReturn
Return Value
TReturnAn newly initialized
TReturnSee Also