Language

JniValueMarshaler.CreateParameterToManagedExpression Method

Definition

Creates an expression that converts a JNI argument to a managed value. The base implementation converts a JNI handle through CreateValue.

public virtual System.Linq.Expressions.Expression CreateParameterToManagedExpression(Java.Interop.Expressions.JniValueMarshalerContext context, System.Linq.Expressions.ParameterExpression sourceValue, System.Reflection.ParameterAttributes synchronize = System.Reflection.ParameterAttributes.None, Type? targetType = default);
abstract member CreateParameterToManagedExpression : Java.Interop.Expressions.JniValueMarshalerContext * System.Linq.Expressions.ParameterExpression * System.Reflection.ParameterAttributes * Type -> System.Linq.Expressions.Expression
override this.CreateParameterToManagedExpression : Java.Interop.Expressions.JniValueMarshalerContext * System.Linq.Expressions.ParameterExpression * System.Reflection.ParameterAttributes * Type -> System.Linq.Expressions.Expression

Parameters

context
JniValueMarshalerContext

Collects generated locals and marshaler construction in the base implementation.

sourceValue
ParameterExpression

The incoming JNI argument expression.

synchronize
ParameterAttributes

Synchronization flags. The base implementation does not use them.

targetType
Type

The requested managed type. In the base implementation, null leaves the call result unconverted.

Returns

The expression for the managed argument. In the base implementation, it is the marshaler call, optionally converted to targetType.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to