Activity<TResult>.Implicit Operator

Definition

Overloads

Implicit(Variable to Activity<TResult>)

Returns a Activity<TResult> expression that evaluates to the given Variable.

Implicit(Variable<TResult> to Activity<TResult>)

Returns a Activity<TResult> expression that evaluates to the given Variable<T>.

Implicit(TResult to Activity<TResult>)

Returns a Activity<TResult> expression that evaluates to the given value.

Implicit(Variable to Activity<TResult>)

Returns a Activity<TResult> expression that evaluates to the given Variable.

public static implicit operator System.Activities.Activity<TResult> (System.Activities.Variable variable);

Parameters

variable
Variable

The value for the expression.

Returns

A workflow expression that evaluates to the given variable.

Remarks

If the type of the Variable is not compatible with the type of the Activity<TResult>, then an ArgumentException is thrown.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Implicit(Variable<TResult> to Activity<TResult>)

Returns a Activity<TResult> expression that evaluates to the given Variable<T>.

public static implicit operator System.Activities.Activity<TResult> (System.Activities.Variable<TResult> variable);

Parameters

variable
Variable<TResult>

The value for the expression.

Returns

A workflow expression that evaluates to the given variable.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Implicit(TResult to Activity<TResult>)

Returns a Activity<TResult> expression that evaluates to the given value.

public static implicit operator System.Activities.Activity<TResult> (TResult constValue);

Parameters

constValue
TResult

The value used to create the expression.

Returns

A workflow expression that evaluates to the given value.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1