ExpressionExtensions

Overview

The ExpressionExtensions static auxiliary class allows to convert Expression to another type and to check Expression equality.

Location


Class Methods


ConvertExpressions

Static method that implements Expression type conversion operation.

If type of the expr1 parameter is a nullable type then expr1 is converted to the type of expr2 parameter, otherwise expr2 parameter is converted to the type of expr1 parameter.

 

class method ConvertExpressions(var expr1: Expression; var expr2: Expression)

 

static void ConvertExpressions(ref Expression expr1, ref Expression expr2)

 

Shared Sub ConvertExpressions(ByRef expr1 As Expression, ByRef expr2 As Expression)

Parameters:

  • expr1: First parameter of type conversion parameter.
  • expr2: Second parameter of type conversion parameter.