 | IJavaObjectGetFieldTReturn(String) Method |
Reads the value of an instance field on the underlying JVM object
and casts it to TReturn.
Namespace: MASES.JCOBridge.C2JBridge.JVMInteropAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
SyntaxTReturn GetField<TReturn>(
string fieldName
)
Function GetField(Of TReturn) (
fieldName As String
) As TReturn
Parameters
- fieldName String
- The name of the Java instance field to read.
Type Parameters
- TReturn
-
The expected field type. Supported types: IJavaObject or any
derived interface/class, .NET primitive types, Enum, and arrays of primitive types.
Return Value
TReturnThe field value cast to
TReturn.
Exceptions
See Also