Język

ColorValueMarshaler.CreateParameterToManagedExpression Method

Definition

Builds an expression that constructs a color from an integer parameter.

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

Parameters

context
JniValueMarshalerContext

Receives the generated color local and its initialization statement.

sourceValue
ParameterExpression

An expression for the packed 32-bit integer input.

synchronize
ParameterAttributes

Unused by this packed-integer conversion.

targetType
Type

Unused; the generated managed value is always a color.

Returns

An expression that refers to the generated color local.

Remarks

The context receives an assignment that calls the color constructor with the integer input. The returned expression refers to the resulting local; it does not construct a color immediately.

Applies to