Language

JniEnvironment.Arrays.CreateMarshalInt32Array Method

Definition

Reuses a Java int-array wrapper or creates one from a managed sequence.

public static Java.Interop.JavaInt32Array? CreateMarshalInt32Array(System.Collections.Generic.IEnumerable<int>? value);
static member CreateMarshalInt32Array : seq<int> -> Java.Interop.JavaInt32Array

Parameters

value
IEnumerable<Int32>

The managed int sequence, or null.

Returns

The matching supplied wrapper, a new wrapper containing copied elements, or null if value is null.

Remarks

New wrappers are marked for temporary marshaling cleanup; existing wrappers are returned unchanged. Use DisposeUnlessReferenced after marshaling to clean up a temporary wrapper.

Applies to