Language

JniRuntime.ReflectionJniValueManager.CreateNonArrayListValue Method

Definition

Rejects non-array Java list conversion in the default implementation.

protected virtual object? CreateNonArrayListValue(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options, Type targetType);
abstract member CreateNonArrayListValue : JniObjectReference * Java.Interop.JniObjectReferenceOptions * Type -> obj
override this.CreateNonArrayListValue : JniObjectReference * Java.Interop.JniObjectReferenceOptions * Type -> obj

Parameters

reference
JniObjectReference

The non-array Java list reference subject to transfer handling.

options
JniObjectReferenceOptions

Source-reference transfer options applied before failure.

targetType
Type

The requested managed list type.

Returns

No value is returned; the implementation throws InvalidCastException.

Remarks

Applies source disposal according to options before throwing. Derived managers can override this hook to support Java lists.

Applies to