 | JVMBridgeBaseTClassSGetFieldStreamTReturn(String) Method |
Reads the static field identified by
fieldName on the
current class and returns its value as a
JCOBridgeStreamT
backed by the JVM primitive array stored in the field.
Namespace: MASES.JCOBridge.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntaxpublic static JCOBridgeStream<TReturn> SGetFieldStream<TReturn>(
string fieldName
)
where TReturn : struct, new()
Public Shared Function SGetFieldStream(Of TReturn As {Structure, New}) (
fieldName As String
) As JCOBridgeStream(Of TReturn)Parameters
- fieldName String
- The name of the static field to read.
Type Parameters
- TReturn
-
The .NET primitive type corresponding to the JVM array element type.
Supported types are: bool, byte,
short, int, long,
float, double and char.
Must match the actual JVM array element type; a mismatch throws
InvalidOperationException at runtime.
Return Value
JCOBridgeStreamTReturn
A
JCOBridgeStreamT that provides stream access to
the JVM array data, or
if the field contains
or an empty JVM array reference.
Dispose the returned stream as soon as it is no longer needed.
See Also