C# 클래스 MongoDB.Driver.Linq.ExpressionParameterReplacer

A class that replaces all occurences of one parameter with a different parameter.
상속: ExpressionVisitor
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
VisitParameter ( System.Linq.Expressions.ParameterExpression node ) : Expression

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

메소드 상세

ExpressionParameterReplacer() 공개 메소드

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.
리턴 System.Linq.Expressions

ReplaceParameter() 공개 정적인 메소드

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.
리턴 System.Linq.Expressions.Expression

VisitParameter() 보호된 메소드

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.
리턴 System.Linq.Expressions.Expression