Table of Contents

Class ExpressionUtils

Namespace
Utils.Expressions
Assembly
Utils.dll

Provides utility helpers for analysing and comparing expression trees.

public static class ExpressionUtils
Inheritance
ExpressionUtils
Inherited Members

Methods

CheckConstant<T>(Expression, T)

Determines whether the supplied expression is a constant with the specified value.

public static bool CheckConstant<T>(Expression expressionToCheck, T checkValue)

Parameters

expressionToCheck Expression

Expression that may contain a constant.

checkValue T

Value expected to be held by the constant expression.

Returns

bool

true when the expression is a constant that matches checkValue.

Type Parameters

T

Type of the value to compare against.

Equals(Expression, Expression)

Compares two expressions for structural equality using the default comparer.

public static bool Equals(Expression x, Expression y)

Parameters

x Expression

First expression to compare.

y Expression

Second expression to compare.

Returns

bool

true when both expressions are structurally equivalent.