ReplacingExpressionVisitor.Replace メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| Replace(IReadOnlyList<Expression>, IReadOnlyList<Expression>, Expression) |
指定された式ツリー内の 1 つの式を別の式に置き換えます。 |
| Replace(Expression, Expression, Expression) |
指定された式ツリー内の 1 つの式を別の式に置き換えます。 |
Replace(IReadOnlyList<Expression>, IReadOnlyList<Expression>, Expression)
指定された式ツリー内の 1 つの式を別の式に置き換えます。
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)
指定された式ツリー内の 1 つの式を別の式に置き換えます。
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
置換が実行される式ツリー。
戻り値
置換が行われた式ツリー。