Table of Contents

Class ExpressionParameterReplacer

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.Legacy.dll

A class that replaces all occurences of one parameter with a different parameter.

public class ExpressionParameterReplacer : ExpressionVisitor
Inheritance
ExpressionParameterReplacer
Inherited Members
Extension Methods

Constructors

ExpressionParameterReplacer(ParameterExpression, Expression)

Initializes a new instance of the ExpressionParameterReplacer class.

Methods

ReplaceParameter(Expression, ParameterExpression, Expression)

Replaces all occurences of one parameter with a different parameter.

VisitParameter(ParameterExpression)

Replaces the from parameter with the two parameter if it maches.