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
expressionToCheckExpressionExpression that may contain a constant.
checkValueTValue expected to be held by the constant expression.
Returns
Type Parameters
TType 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
xExpressionFirst expression to compare.
yExpressionSecond expression to compare.