Language

JniEnvironment.Arrays.CreateMarshalDoubleArray Method

Definition

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

public static Java.Interop.JavaDoubleArray? CreateMarshalDoubleArray(System.Collections.Generic.IEnumerable<double>? value);
static member CreateMarshalDoubleArray : seq<double> -> Java.Interop.JavaDoubleArray

Parameters

value
IEnumerable<Double>

The managed double 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