Language

JniEnvironment.Arrays.CreateMarshalCharArray(IEnumerable<Char>) Method

Definition

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

public static Java.Interop.JavaCharArray? CreateMarshalCharArray(System.Collections.Generic.IEnumerable<char>? value);
static member CreateMarshalCharArray : seq<char> -> Java.Interop.JavaCharArray

Parameters

value
IEnumerable<Char>

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