语言

ReplacingExpressionVisitor.Replace 方法

定义

重载

名称 说明
Replace(IReadOnlyList<Expression>, IReadOnlyList<Expression>, Expression)

将一个表达式替换为给定表达式树中的另一个表达式。

Replace(Expression, Expression, Expression)

将一个表达式替换为给定表达式树中的另一个表达式。

Replace(IReadOnlyList<Expression>, IReadOnlyList<Expression>, Expression)

Source:
ReplacingExpressionVisitor.cs
Source:
ReplacingExpressionVisitor.cs
Source:
ReplacingExpressionVisitor.cs

将一个表达式替换为给定表达式树中的另一个表达式。

public static System.Linq.Expressions.Expression Replace(System.Collections.Generic.IReadOnlyList<System.Linq.Expressions.Expression> originals, System.Collections.Generic.IReadOnlyList<System.Linq.Expressions.Expression> replacements, System.Linq.Expressions.Expression tree);
static member Replace : System.Collections.Generic.IReadOnlyList<System.Linq.Expressions.Expression> * System.Collections.Generic.IReadOnlyList<System.Linq.Expressions.Expression> * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
Public Shared Function Replace (originals As IReadOnlyList(Of Expression), replacements As IReadOnlyList(Of Expression), tree As Expression) As Expression

参数

originals
IReadOnlyList<Expression>

要替换的原始表达式的列表。

replacements
IReadOnlyList<Expression>

要用作替换的表达式的列表。

tree
Expression

要在其中执行替换的表达式树。

返回

具有替换项的表达式树。

适用于

Replace(Expression, Expression, Expression)

Source:
ReplacingExpressionVisitor.cs
Source:
ReplacingExpressionVisitor.cs
Source:
ReplacingExpressionVisitor.cs
Source:
ReplacingExpressionVisitor.cs
Source:
ReplacingExpressionVisitor.cs
Source:
ReplacingExpressionVisitor.cs
Source:
ReplacingExpressionVisitor.cs
Source:
ReplacingExpressionVisitor.cs
Source:
ReplacingExpressionVisitor.cs

将一个表达式替换为给定表达式树中的另一个表达式。

public static System.Linq.Expressions.Expression Replace(System.Linq.Expressions.Expression original, System.Linq.Expressions.Expression replacement, System.Linq.Expressions.Expression tree);
static member Replace : System.Linq.Expressions.Expression * System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.Expression
Public Shared Function Replace (original As Expression, replacement As Expression, tree As Expression) As Expression

参数

original
Expression

要替换的表达式。

replacement
Expression

要用作替换的表达式。

tree
Expression

要在其中执行替换的表达式树。

返回

具有替换项的表达式树。

适用于