Language

JniValueMarshaler.CreateParameterToManagedExpression Method

Definition

Builds an expression that 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.

sourceValue
ParameterExpression

The incoming JNI handle expression.

synchronize
ParameterAttributes

Reserved synchronization flags; the base implementation does not use them.

targetType
Type

The requested managed type, or null to leave the call result unconverted.

Returns

The marshaler call expression, 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