Expression.Reduce 方法

定義

將這個節點精簡為更簡單的運算式。Reduces this node to a simpler expression. 如果 CanReduce 傳回 true,則應該傳回有效的運算式。If CanReduce returns true, this should return a valid expression. 這個方法可以傳回其他本身必須精簡的節點。This method can return another node which itself must be reduced.

public:
 virtual System::Linq::Expressions::Expression ^ Reduce();
public virtual System.Linq.Expressions.Expression Reduce ();
abstract member Reduce : unit -> System.Linq.Expressions.Expression
override this.Reduce : unit -> System.Linq.Expressions.Expression
Public Overridable Function Reduce () As Expression

傳回

Expression

精簡的運算式。The reduced expression.

適用於