C# Class MongoDB.Driver.Linq.ExpressionParameterReplacer

A class that replaces all occurences of one parameter with a different parameter.
Inheritance: ExpressionVisitor
Afficher le fichier Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Méthodes publiques

Méthode Description
ExpressionParameterReplacer ( System.Linq.Expressions.ParameterExpression fromParameter, Expression toExpression ) : System.Linq.Expressions

Initializes a new instance of the ExpressionParameterReplacer class.

ReplaceParameter ( Expression node, System.Linq.Expressions.ParameterExpression fromParameter, Expression toExpression ) : Expression

Replaces all occurences of one parameter with a different parameter.

Méthodes protégées

Méthode Description
VisitParameter ( System.Linq.Expressions.ParameterExpression node ) : Expression

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

Method Details

ExpressionParameterReplacer() public méthode

Initializes a new instance of the ExpressionParameterReplacer class.
public ExpressionParameterReplacer ( System.Linq.Expressions.ParameterExpression fromParameter, Expression toExpression ) : System.Linq.Expressions
fromParameter System.Linq.Expressions.ParameterExpression The parameter to be replaced.
toExpression System.Linq.Expressions.Expression The expression that replaces the parameter.
Résultat System.Linq.Expressions

ReplaceParameter() public static méthode

Replaces all occurences of one parameter with a different parameter.
public static ReplaceParameter ( Expression node, System.Linq.Expressions.ParameterExpression fromParameter, Expression toExpression ) : Expression
node System.Linq.Expressions.Expression The expression containing the parameter that should be replaced.
fromParameter System.Linq.Expressions.ParameterExpression The from parameter.
toExpression System.Linq.Expressions.Expression The expression that replaces the parameter.
Résultat System.Linq.Expressions.Expression

VisitParameter() protected méthode

Replaces the from parameter with the two parameter if it maches.
protected VisitParameter ( System.Linq.Expressions.ParameterExpression node ) : Expression
node System.Linq.Expressions.ParameterExpression The node.
Résultat System.Linq.Expressions.Expression