Click or drag to resize

IJavaObjectInvokeWithSignatureTReturn(String, String) Method

Invokes an instance method on the underlying JVM object using an explicit JNI signature, no arguments, and casts the result to TReturn.

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
TReturn InvokeWithSignature<TReturn>(
	string methodName,
	string signature
)

Parameters

methodName  String
The name of the Java instance method to invoke.
signature  String
The JNI method descriptor string that uniquely identifies the target method.

Type Parameters

TReturn
The expected return type. Supported types: IJavaObject or any derived interface/class, .NET primitive types, Enum, and arrays of primitive types.

Return Value

TReturn
The return value of the method cast to TReturn.
Exceptions
ExceptionCondition
MissingMethodException Thrown if the method identified by methodName and signature is not found on the underlying Java class.
InvalidCastException Thrown if the actual return value cannot be cast to TReturn.
See Also