Click or drag to resize

ExpressionParameterReplacerReplaceParameter Method

Replaces all occurences of one parameter with a different parameter.

Namespace:  MongoDB.Driver.Linq
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
Syntax
public static Expression ReplaceParameter(
	Expression node,
	ParameterExpression fromParameter,
	Expression toExpression
)

Parameters

node
Type: System.Linq.ExpressionsExpression
The expression containing the parameter that should be replaced.
fromParameter
Type: System.Linq.ExpressionsParameterExpression
The from parameter.
toExpression
Type: System.Linq.ExpressionsExpression
The expression that replaces the parameter.

Return Value

Type: Expression
The expression with all occurrences of the parameter replaced.
See Also