Export (0) Print
Expand All

Expression Class

Provides the base class from which the classes that represent expression tree nodes are derived. It also contains static (Shared in Visual Basic) factory methods to create the various node types. This is an abstract class.

System.Object
  System.Linq.Expressions.Expression
    More...

Namespace:  System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

'Declaration
Public MustInherit Class Expression

The Expression type exposes the following members.

  NameDescription
Protected methodSupported by Portable Class LibraryExpressionConstructs a new instance of Expression.
Protected methodExpression(ExpressionType, Type) Obsolete. Initializes a new instance of the Expression class.
Top

  NameDescription
Public propertySupported by Portable Class LibraryCanReduceIndicates that the node can be reduced to a simpler node. If this returns true, Reduce() can be called to produce the reduced form.
Public propertySupported by Portable Class LibraryNodeTypeGets the node type of this Expression.
Public propertySupported by Portable Class LibraryTypeGets the static type of the expression that this Expression represents.
Top

  NameDescription
Protected methodSupported by Portable Class LibraryAcceptDispatches to the specific visit method for this node type. For example, MethodCallExpression calls the VisitMethodCall.
Public methodStatic memberSupported by Portable Class LibraryAdd(Expression, Expression)Creates a BinaryExpression that represents an arithmetic addition operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibraryAdd(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents an arithmetic addition operation that does not have overflow checking. The implementing method can be specified.
Public methodStatic memberSupported by Portable Class LibraryAddAssign(Expression, Expression)Creates a BinaryExpression that represents an addition assignment operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibraryAddAssign(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents an addition assignment operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibraryAddAssign(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents an addition assignment operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibraryAddAssignChecked(Expression, Expression)Creates a BinaryExpression that represents an addition assignment operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibraryAddAssignChecked(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents an addition assignment operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibraryAddAssignChecked(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents an addition assignment operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibraryAddChecked(Expression, Expression)Creates a BinaryExpression that represents an arithmetic addition operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibraryAddChecked(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents an arithmetic addition operation that has overflow checking. The implementing method can be specified.
Public methodStatic memberSupported by Portable Class LibraryAnd(Expression, Expression)Creates a BinaryExpression that represents a bitwise AND operation.
Public methodStatic memberSupported by Portable Class LibraryAnd(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a bitwise AND operation. The implementing method can be specified.
Public methodStatic memberSupported by Portable Class LibraryAndAlso(Expression, Expression)Creates a BinaryExpression that represents a conditional AND operation that evaluates the second operand only if the first operand evaluates to true.
Public methodStatic memberSupported by Portable Class LibraryAndAlso(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a conditional AND operation that evaluates the second operand only if the first operand is resolved to true. The implementing method can be specified.
Public methodStatic memberSupported by Portable Class LibraryAndAssign(Expression, Expression)Creates a BinaryExpression that represents a bitwise AND assignment operation.
Public methodStatic memberSupported by Portable Class LibraryAndAssign(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a bitwise AND assignment operation.
Public methodStatic memberSupported by Portable Class LibraryAndAssign(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents a bitwise AND assignment operation.
Public methodStatic memberSupported by Portable Class LibraryArrayAccess(Expression, IEnumerable(Of Expression))Creates an IndexExpression to access a multidimensional array.
Public methodStatic memberSupported by Portable Class LibraryArrayAccess(Expression, Expression())Creates an IndexExpression to access an array.
Public methodStatic memberSupported by Portable Class LibraryArrayIndex(Expression, IEnumerable(Of Expression))Creates a MethodCallExpression that represents applying an array index operator to an array of rank more than one.
Public methodStatic memberSupported by Portable Class LibraryArrayIndex(Expression, Expression)Creates a BinaryExpression that represents applying an array index operator to an array of rank one.
Public methodStatic memberSupported by Portable Class LibraryArrayIndex(Expression, Expression())Creates a MethodCallExpression that represents applying an array index operator to a multidimensional array.
Public methodStatic memberSupported by Portable Class LibraryArrayLengthCreates a UnaryExpression that represents an expression for obtaining the length of a one-dimensional array.
Public methodStatic memberSupported by Portable Class LibraryAssignCreates a BinaryExpression that represents an assignment operation.
Public methodStatic memberSupported by Portable Class LibraryBind(MemberInfo, Expression)Creates a MemberAssignment that represents the initialization of a field or property.
Public methodStatic memberSupported by Portable Class LibraryBind(MethodInfo, Expression)Creates a MemberAssignment that represents the initialization of a member by using a property accessor method.
Public methodStatic memberSupported by Portable Class LibraryBlock(Expression())Creates a BlockExpression that contains the given expressions and has no variables.
Public methodStatic memberSupported by Portable Class LibraryBlock(IEnumerable(Of Expression))Creates a BlockExpression that contains the given expressions and has no variables.
Public methodStatic memberSupported by Portable Class LibraryBlock(Expression, Expression)Creates a BlockExpression that contains two expressions and has no variables.
Public methodStatic memberSupported by Portable Class LibraryBlock(IEnumerable(Of ParameterExpression), IEnumerable(Of Expression))Creates a BlockExpression that contains the given variables and expressions.
Public methodStatic memberSupported by Portable Class LibraryBlock(IEnumerable(Of ParameterExpression), Expression())Creates a BlockExpression that contains the given variables and expressions.
Public methodStatic memberSupported by Portable Class LibraryBlock(Type, IEnumerable(Of Expression))Creates a BlockExpression that contains the given expressions, has no variables and has specific result type.
Public methodStatic memberSupported by Portable Class LibraryBlock(Type, Expression())Creates a BlockExpression that contains the given expressions, has no variables and has specific result type.
Public methodStatic memberSupported by Portable Class LibraryBlock(Expression, Expression, Expression)Creates a BlockExpression that contains three expressions and has no variables.
Public methodStatic memberSupported by Portable Class LibraryBlock(Type, IEnumerable(Of ParameterExpression), IEnumerable(Of Expression))Creates a BlockExpression that contains the given variables and expressions.
Public methodStatic memberSupported by Portable Class LibraryBlock(Type, IEnumerable(Of ParameterExpression), Expression())Creates a BlockExpression that contains the given variables and expressions.
Public methodStatic memberSupported by Portable Class LibraryBlock(Expression, Expression, Expression, Expression)Creates a BlockExpression that contains four expressions and has no variables.
Public methodStatic memberSupported by Portable Class LibraryBlock(Expression, Expression, Expression, Expression, Expression)Creates a BlockExpression that contains five expressions and has no variables.
Public methodStatic memberSupported by Portable Class LibraryBreak(LabelTarget)Creates a GotoExpression representing a break statement.
Public methodStatic memberSupported by Portable Class LibraryBreak(LabelTarget, Expression)Creates a GotoExpression representing a break statement. The value passed to the label upon jumping can be specified.
Public methodStatic memberSupported by Portable Class LibraryBreak(LabelTarget, Type)Creates a GotoExpression representing a break statement with the specified type.
Public methodStatic memberSupported by Portable Class LibraryBreak(LabelTarget, Expression, Type)Creates a GotoExpression representing a break statement with the specified type. The value passed to the label upon jumping can be specified.
Public methodStatic memberSupported by Portable Class LibraryCall(Expression, MethodInfo)Creates a MethodCallExpression that represents a call to a method that takes no arguments.
Public methodStatic memberSupported by Portable Class LibraryCall(MethodInfo, IEnumerable(Of Expression))Creates a MethodCallExpression that represents a call to a static (Shared in Visual Basic) method.
Public methodStatic memberSupported by Portable Class LibraryCall(MethodInfo, Expression)Creates a MethodCallExpression that represents a call to a static (Shared in Visual Basic) method that takes one argument.
Public methodStatic memberSupported by Portable Class LibraryCall(MethodInfo, Expression())Creates a MethodCallExpression that represents a call to a static (Shared in Visual Basic) method that has arguments.
Public methodStatic memberSupported by Portable Class LibraryCall(Expression, MethodInfo, IEnumerable(Of Expression))Creates a MethodCallExpression that represents a call to a method that takes arguments.
Public methodStatic memberSupported by Portable Class LibraryCall(Expression, MethodInfo, Expression())Creates a MethodCallExpression that represents a call to a method that takes arguments.
Public methodStatic memberSupported by Portable Class LibraryCall(MethodInfo, Expression, Expression)Creates a MethodCallExpression that represents a call to a static method that takes two arguments.
Public methodStatic memberSupported by Portable Class LibraryCall(Expression, MethodInfo, Expression, Expression)Creates a MethodCallExpression that represents a call to a method that takes two arguments.
Public methodStatic memberSupported by Portable Class LibraryCall(Expression, String, Type(), Expression())Creates a MethodCallExpression that represents a call to a method by calling the appropriate factory method.
Public methodStatic memberSupported by Portable Class LibraryCall(MethodInfo, Expression, Expression, Expression)Creates a MethodCallExpression that represents a call to a static method that takes three arguments.
Public methodStatic memberSupported by Portable Class LibraryCall(Type, String, Type(), Expression())Creates a MethodCallExpression that represents a call to a static (Shared in Visual Basic) method by calling the appropriate factory method.
Public methodStatic memberSupported by Portable Class LibraryCall(Expression, MethodInfo, Expression, Expression, Expression)Creates a MethodCallExpression that represents a call to a method that takes three arguments.
Public methodStatic memberSupported by Portable Class LibraryCall(MethodInfo, Expression, Expression, Expression, Expression)Creates a MethodCallExpression that represents a call to a static method that takes four arguments.
Public methodStatic memberSupported by Portable Class LibraryCall(MethodInfo, Expression, Expression, Expression, Expression, Expression)Creates a MethodCallExpression that represents a call to a static method that takes five arguments.
Public methodStatic memberSupported by Portable Class LibraryCatch(ParameterExpression, Expression)Creates a CatchBlock representing a catch statement with a reference to the caught Exception object for use in the handler body.
Public methodStatic memberSupported by Portable Class LibraryCatch(Type, Expression)Creates a CatchBlock representing a catch statement.
Public methodStatic memberSupported by Portable Class LibraryCatch(ParameterExpression, Expression, Expression)Creates a CatchBlock representing a catch statement with an Exception filter and a reference to the caught Exception object.
Public methodStatic memberSupported by Portable Class LibraryCatch(Type, Expression, Expression)Creates a CatchBlock representing a catch statement with an Exception filter but no reference to the caught Exception object.
Public methodStatic memberSupported by Portable Class LibraryClearDebugInfoCreates a DebugInfoExpression for clearing a sequence point.
Public methodStatic memberSupported by Portable Class LibraryCoalesce(Expression, Expression)Creates a BinaryExpression that represents a coalescing operation.
Public methodStatic memberSupported by Portable Class LibraryCoalesce(Expression, Expression, LambdaExpression)Creates a BinaryExpression that represents a coalescing operation, given a conversion function.
Public methodStatic memberSupported by Portable Class LibraryCondition(Expression, Expression, Expression)Creates a ConditionalExpression that represents a conditional statement.
Public methodStatic memberSupported by Portable Class LibraryCondition(Expression, Expression, Expression, Type)Creates a ConditionalExpression that represents a conditional statement.
Public methodStatic memberSupported by Portable Class LibraryConstant(Object)Creates a ConstantExpression that has the Value property set to the specified value.
Public methodStatic memberSupported by Portable Class LibraryConstant(Object, Type)Creates a ConstantExpression that has the Value and Type properties set to the specified values.
Public methodStatic memberSupported by Portable Class LibraryContinue(LabelTarget)Creates a GotoExpression representing a continue statement.
Public methodStatic memberSupported by Portable Class LibraryContinue(LabelTarget, Type)Creates a GotoExpression representing a continue statement with the specified type.
Public methodStatic memberSupported by Portable Class LibraryConvert(Expression, Type)Creates a UnaryExpression that represents a type conversion operation.
Public methodStatic memberSupported by Portable Class LibraryConvert(Expression, Type, MethodInfo)Creates a UnaryExpression that represents a conversion operation for which the implementing method is specified.
Public methodStatic memberSupported by Portable Class LibraryConvertChecked(Expression, Type)Creates a UnaryExpression that represents a conversion operation that throws an exception if the target type is overflowed.
Public methodStatic memberSupported by Portable Class LibraryConvertChecked(Expression, Type, MethodInfo)Creates a UnaryExpression that represents a conversion operation that throws an exception if the target type is overflowed and for which the implementing method is specified.
Public methodStatic memberSupported by Portable Class LibraryDebugInfoCreates a DebugInfoExpression with the specified span.
Public methodStatic memberSupported by Portable Class LibraryDecrement(Expression)Creates a UnaryExpression that represents the decrementing of the expression by 1.
Public methodStatic memberSupported by Portable Class LibraryDecrement(Expression, MethodInfo)Creates a UnaryExpression that represents the decrementing of the expression by 1.
Public methodStatic memberSupported by Portable Class LibraryDefaultCreates a DefaultExpression that has the Type property set to the specified type.
Public methodStatic memberSupported by Portable Class LibraryDivide(Expression, Expression)Creates a BinaryExpression that represents an arithmetic division operation.
Public methodStatic memberSupported by Portable Class LibraryDivide(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents an arithmetic division operation. The implementing method can be specified.
Public methodStatic memberSupported by Portable Class LibraryDivideAssign(Expression, Expression)Creates a BinaryExpression that represents a division assignment operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibraryDivideAssign(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a division assignment operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibraryDivideAssign(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents a division assignment operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibraryDynamic(CallSiteBinder, Type, IEnumerable(Of Expression))Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
Public methodStatic memberSupported by Portable Class LibraryDynamic(CallSiteBinder, Type, Expression)Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
Public methodStatic memberSupported by Portable Class LibraryDynamic(CallSiteBinder, Type, Expression())Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
Public methodStatic memberSupported by Portable Class LibraryDynamic(CallSiteBinder, Type, Expression, Expression)Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
Public methodStatic memberSupported by Portable Class LibraryDynamic(CallSiteBinder, Type, Expression, Expression, Expression)Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
Public methodStatic memberSupported by Portable Class LibraryDynamic(CallSiteBinder, Type, Expression, Expression, Expression, Expression)Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
Public methodStatic memberSupported by Portable Class LibraryElementInit(MethodInfo, IEnumerable(Of Expression))Creates an ElementInit, given an IEnumerable(Of T) as the second argument.
Public methodStatic memberSupported by Portable Class LibraryElementInit(MethodInfo, Expression())Creates an ElementInit, given an array of values as the second argument.
Public methodStatic memberSupported by Portable Class LibraryEmptyCreates an empty expression that has Void type.
Public methodStatic memberSupported by Portable Class LibraryEqual(Expression, Expression)Creates a BinaryExpression that represents an equality comparison.
Public methodStatic memberSupported by Portable Class LibraryEqual(Expression, Expression, Boolean, MethodInfo)Creates a BinaryExpression that represents an equality comparison. The implementing method can be specified.
Public methodSupported by Portable Class LibraryEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic memberSupported by Portable Class LibraryExclusiveOr(Expression, Expression)Creates a BinaryExpression that represents a bitwise XOR operation, using op_ExclusiveOr for user-defined types.
Public methodStatic memberSupported by Portable Class LibraryExclusiveOr(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a bitwise XOR operation, using op_ExclusiveOr for user-defined types. The implementing method can be specified.
Public methodStatic memberSupported by Portable Class LibraryExclusiveOrAssign(Expression, Expression)Creates a BinaryExpression that represents a bitwise XOR assignment operation, using op_ExclusiveOr for user-defined types.
Public methodStatic memberSupported by Portable Class LibraryExclusiveOrAssign(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a bitwise XOR assignment operation, using op_ExclusiveOr for user-defined types.
Public methodStatic memberSupported by Portable Class LibraryExclusiveOrAssign(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents a bitwise XOR assignment operation, using op_ExclusiveOr for user-defined types.
Public methodStatic memberSupported by Portable Class LibraryField(Expression, FieldInfo)Creates a MemberExpression that represents accessing a field.
Public methodStatic memberSupported by Portable Class LibraryField(Expression, String)Creates a MemberExpression that represents accessing a field given the name of the field.
Public methodStatic memberSupported by Portable Class LibraryField(Expression, Type, String)Creates a MemberExpression that represents accessing a field.
Protected methodSupported by Portable Class LibraryFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberSupported by Portable Class LibraryGetActionTypeCreates a Type object that represents a generic System.Action delegate type that has specific type arguments.
Public methodStatic memberSupported by Portable Class LibraryGetDelegateTypeGets a Type object that represents a generic System.Func or System.Action delegate type that has specific type arguments.
Public methodStatic memberSupported by Portable Class LibraryGetFuncTypeCreates a Type object that represents a generic System.Func delegate type that has specific type arguments. The last type argument specifies the return type of the created delegate.
Public methodSupported by Portable Class LibraryGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by Portable Class LibraryGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberSupported by Portable Class LibraryGoto(LabelTarget)Creates a GotoExpression representing a "go to" statement.
Public methodStatic memberSupported by Portable Class LibraryGoto(LabelTarget, Expression)Creates a GotoExpression representing a "go to" statement. The value passed to the label upon jumping can be specified.
Public methodStatic memberSupported by Portable Class LibraryGoto(LabelTarget, Type)Creates a GotoExpression representing a "go to" statement with the specified type.
Public methodStatic memberSupported by Portable Class LibraryGoto(LabelTarget, Expression, Type)Creates a GotoExpression representing a "go to" statement with the specified type. The value passed to the label upon jumping can be specified.
Public methodStatic memberSupported by Portable Class LibraryGreaterThan(Expression, Expression)Creates a BinaryExpression that represents a "greater than" numeric comparison.
Public methodStatic memberSupported by Portable Class LibraryGreaterThan(Expression, Expression, Boolean, MethodInfo)Creates a BinaryExpression that represents a "greater than" numeric comparison. The implementing method can be specified.
Public methodStatic memberSupported by Portable Class LibraryGreaterThanOrEqual(Expression, Expression)Creates a BinaryExpression that represents a "greater than or equal" numeric comparison.
Public methodStatic memberSupported by Portable Class LibraryGreaterThanOrEqual(Expression, Expression, Boolean, MethodInfo)Creates a BinaryExpression that represents a "greater than or equal" numeric comparison.
Public methodStatic memberSupported by Portable Class LibraryIfThenCreates a ConditionalExpression that represents a conditional block with an if statement.
Public methodStatic memberSupported by Portable Class LibraryIfThenElseCreates a ConditionalExpression that represents a conditional block with if and else statements.
Public methodStatic memberSupported by Portable Class LibraryIncrement(Expression)Creates a UnaryExpression that represents the incrementing of the expression value by 1.
Public methodStatic memberSupported by Portable Class LibraryIncrement(Expression, MethodInfo)Creates a UnaryExpression that represents the incrementing of the expression by 1.
Public methodStatic memberSupported by Portable Class LibraryInvoke(Expression, IEnumerable(Of Expression))Creates an InvocationExpression that applies a delegate or lambda expression to a list of argument expressions.
Public methodStatic memberSupported by Portable Class LibraryInvoke(Expression, Expression())Creates an InvocationExpression that applies a delegate or lambda expression to a list of argument expressions.
Public methodStatic memberSupported by Portable Class LibraryIsFalse(Expression)Returns whether the expression evaluates to false.
Public methodStatic memberSupported by Portable Class LibraryIsFalse(Expression, MethodInfo)Returns whether the expression evaluates to false.
Public methodStatic memberSupported by Portable Class LibraryIsTrue(Expression)Returns whether the expression evaluates to true.
Public methodStatic memberSupported by Portable Class LibraryIsTrue(Expression, MethodInfo)Returns whether the expression evaluates to true.
Public methodStatic memberSupported by Portable Class LibraryLabelCreates a LabelTarget representing a label with void type and no name.
Public methodStatic memberSupported by Portable Class LibraryLabel(LabelTarget)Creates a LabelExpression representing a label without a default value.
Public methodStatic memberSupported by Portable Class LibraryLabel(String)Creates a LabelTarget representing a label with void type and the given name.
Public methodStatic memberSupported by Portable Class LibraryLabel(Type)Creates a LabelTarget representing a label with the given type.
Public methodStatic memberSupported by Portable Class LibraryLabel(LabelTarget, Expression)Creates a LabelExpression representing a label with the given default value.
Public methodStatic memberSupported by Portable Class LibraryLabel(Type, String)Creates a LabelTarget representing a label with the given type and name.
Public methodStatic memberSupported by Portable Class LibraryLambda(Expression, IEnumerable(Of ParameterExpression))Creates a LambdaExpression by first constructing a delegate type.
Public methodStatic memberSupported by Portable Class LibraryLambda(Expression, ParameterExpression())Creates a LambdaExpression by first constructing a delegate type.
Public methodStatic memberSupported by Portable Class LibraryLambda(Expression, Boolean, IEnumerable(Of ParameterExpression))Creates a LambdaExpression by first constructing a delegate type.
Public methodStatic memberSupported by Portable Class LibraryLambda(Expression, Boolean, ParameterExpression())Creates a LambdaExpression by first constructing a delegate type.
Public methodStatic memberSupported by Portable Class LibraryLambda(Expression, String, IEnumerable(Of ParameterExpression))Creates a LambdaExpression by first constructing a delegate type.
Public methodStatic memberSupported by Portable Class LibraryLambda(Type, Expression, IEnumerable(Of ParameterExpression))Creates a LambdaExpression by first constructing a delegate type. It can be used when the delegate type is not known at compile time.
Public methodStatic memberSupported by Portable Class LibraryLambda(Type, Expression, ParameterExpression())Creates a LambdaExpression by first constructing a delegate type. It can be used when the delegate type is not known at compile time.
Public methodStatic memberSupported by Portable Class LibraryLambda(Expression, String, Boolean, IEnumerable(Of ParameterExpression))Creates a LambdaExpression by first constructing a delegate type.
Public methodStatic memberSupported by Portable Class LibraryLambda(Type, Expression, Boolean, IEnumerable(Of ParameterExpression))Creates a LambdaExpression by first constructing a delegate type.
Public methodStatic memberSupported by Portable Class LibraryLambda(Type, Expression, Boolean, ParameterExpression())Creates a LambdaExpression by first constructing a delegate type.
Public methodStatic memberSupported by Portable Class LibraryLambda(Type, Expression, String, IEnumerable(Of ParameterExpression))Creates a LambdaExpression by first constructing a delegate type.
Public methodStatic memberSupported by Portable Class LibraryLambda(Type, Expression, String, Boolean, IEnumerable(Of ParameterExpression))Creates a LambdaExpression by first constructing a delegate type.
Public methodStatic memberSupported by Portable Class LibraryLambda(Of TDelegate)(Expression, IEnumerable(Of ParameterExpression))Creates an Expression(Of TDelegate) where the delegate type is known at compile time.
Public methodStatic memberSupported by Portable Class LibraryLambda(Of TDelegate)(Expression, ParameterExpression())Creates an Expression(Of TDelegate) where the delegate type is known at compile time.
Public methodStatic memberSupported by Portable Class LibraryLambda(Of TDelegate)(Expression, Boolean, IEnumerable(Of ParameterExpression))Creates an Expression(Of TDelegate) where the delegate type is known at compile time.
Public methodStatic memberSupported by Portable Class LibraryLambda(Of TDelegate)(Expression, Boolean, ParameterExpression())Creates an Expression(Of TDelegate) where the delegate type is known at compile time.
Public methodStatic memberSupported by Portable Class LibraryLambda(Of TDelegate)(Expression, String, IEnumerable(Of ParameterExpression))Creates an Expression(Of TDelegate) where the delegate type is known at compile time.
Public methodStatic memberSupported by Portable Class LibraryLambda(Of TDelegate)(Expression, String, Boolean, IEnumerable(Of ParameterExpression))Creates an Expression(Of TDelegate) where the delegate type is known at compile time.
Public methodStatic memberSupported by Portable Class LibraryLeftShift(Expression, Expression)Creates a BinaryExpression that represents a bitwise left-shift operation.
Public methodStatic memberSupported by Portable Class LibraryLeftShift(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a bitwise left-shift operation.
Public methodStatic memberSupported by Portable Class LibraryLeftShiftAssign(Expression, Expression)Creates a BinaryExpression that represents a bitwise left-shift assignment operation.
Public methodStatic memberSupported by Portable Class LibraryLeftShiftAssign(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a bitwise left-shift assignment operation.
Public methodStatic memberSupported by Portable Class LibraryLeftShiftAssign(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents a bitwise left-shift assignment operation.
Public methodStatic memberSupported by Portable Class LibraryLessThan(Expression, Expression)Creates a BinaryExpression that represents a "less than" numeric comparison.
Public methodStatic memberSupported by Portable Class LibraryLessThan(Expression, Expression, Boolean, MethodInfo)Creates a BinaryExpression that represents a "less than" numeric comparison.
Public methodStatic memberSupported by Portable Class LibraryLessThanOrEqual(Expression, Expression)Creates a BinaryExpression that represents a " less than or equal" numeric comparison.
Public methodStatic memberSupported by Portable Class LibraryLessThanOrEqual(Expression, Expression, Boolean, MethodInfo)Creates a BinaryExpression that represents a "less than or equal" numeric comparison.
Public methodStatic memberSupported by Portable Class LibraryListBind(MemberInfo, IEnumerable(Of ElementInit))Creates a MemberListBinding where the member is a field or property.
Public methodStatic memberSupported by Portable Class LibraryListBind(MemberInfo, ElementInit())Creates a MemberListBinding where the member is a field or property.
Public methodStatic memberSupported by Portable Class LibraryListBind(MethodInfo, IEnumerable(Of ElementInit))Creates a MemberListBinding based on a specified property accessor method.
Public methodStatic memberSupported by Portable Class LibraryListBind(MethodInfo, ElementInit())Creates a MemberListBinding object based on a specified property accessor method.
Public methodStatic memberSupported by Portable Class LibraryListInit(NewExpression, IEnumerable(Of ElementInit))Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection.
Public methodStatic memberSupported by Portable Class LibraryListInit(NewExpression, IEnumerable(Of Expression))Creates a ListInitExpression that uses a method named "Add" to add elements to a collection.
Public methodStatic memberSupported by Portable Class LibraryListInit(NewExpression, ElementInit())Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection.
Public methodStatic memberSupported by Portable Class LibraryListInit(NewExpression, Expression())Creates a ListInitExpression that uses a method named "Add" to add elements to a collection.
Public methodStatic memberSupported by Portable Class LibraryListInit(NewExpression, MethodInfo, IEnumerable(Of Expression))Creates a ListInitExpression that uses a specified method to add elements to a collection.
Public methodStatic memberSupported by Portable Class LibraryListInit(NewExpression, MethodInfo, Expression())Creates a ListInitExpression that uses a specified method to add elements to a collection.
Public methodStatic memberSupported by Portable Class LibraryLoop(Expression)Creates a LoopExpression with the given body.
Public methodStatic memberSupported by Portable Class LibraryLoop(Expression, LabelTarget)Creates a LoopExpression with the given body and break target.
Public methodStatic memberSupported by Portable Class LibraryLoop(Expression, LabelTarget, LabelTarget)Creates a LoopExpression with the given body.
Public methodStatic memberSupported by Portable Class LibraryMakeBinary(ExpressionType, Expression, Expression)Creates a BinaryExpression, given the left and right operands, by calling an appropriate factory method.
Public methodStatic memberSupported by Portable Class LibraryMakeBinary(ExpressionType, Expression, Expression, Boolean, MethodInfo)Creates a BinaryExpression, given the left operand, right operand and implementing method, by calling the appropriate factory method.
Public methodStatic memberSupported by Portable Class LibraryMakeBinary(ExpressionType, Expression, Expression, Boolean, MethodInfo, LambdaExpression)Creates a BinaryExpression, given the left operand, right operand, implementing method and type conversion function, by calling the appropriate factory method.
Public methodStatic memberSupported by Portable Class LibraryMakeCatchBlockCreates a CatchBlock representing a catch statement with the specified elements.
Public methodStatic memberSupported by Portable Class LibraryMakeDynamic(Type, CallSiteBinder, IEnumerable(Of Expression))Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
Public methodStatic memberSupported by Portable Class LibraryMakeDynamic(Type, CallSiteBinder, Expression)Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder and one argument.
Public methodStatic memberSupported by Portable Class LibraryMakeDynamic(Type, CallSiteBinder, Expression())Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder.
Public methodStatic memberSupported by Portable Class LibraryMakeDynamic(Type, CallSiteBinder, Expression, Expression)Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder and two arguments.
Public methodStatic memberSupported by Portable Class LibraryMakeDynamic(Type, CallSiteBinder, Expression, Expression, Expression)Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder and three arguments.
Public methodStatic memberSupported by Portable Class LibraryMakeDynamic(Type, CallSiteBinder, Expression, Expression, Expression, Expression)Creates a DynamicExpression that represents a dynamic operation bound by the provided CallSiteBinder and four arguments.
Public methodStatic memberSupported by Portable Class LibraryMakeGotoCreates a GotoExpression representing a jump of the specified GotoExpressionKind. The value passed to the label upon jumping can also be specified.
Public methodStatic memberSupported by Portable Class LibraryMakeIndexCreates an IndexExpression that represents accessing an indexed property in an object.
Public methodStatic memberSupported by Portable Class LibraryMakeMemberAccessCreates a MemberExpression that represents accessing either a field or a property.
Public methodStatic memberSupported by Portable Class LibraryMakeTryCreates a TryExpression representing a try block with the specified elements.
Public methodStatic memberSupported by Portable Class LibraryMakeUnary(ExpressionType, Expression, Type)Creates a UnaryExpression, given an operand, by calling the appropriate factory method.
Public methodStatic memberSupported by Portable Class LibraryMakeUnary(ExpressionType, Expression, Type, MethodInfo)Creates a UnaryExpression, given an operand and implementing method, by calling the appropriate factory method.
Public methodStatic memberSupported by Portable Class LibraryMemberBind(MemberInfo, IEnumerable(Of MemberBinding))Creates a MemberMemberBinding that represents the recursive initialization of members of a field or property.
Public methodStatic memberSupported by Portable Class LibraryMemberBind(MemberInfo, MemberBinding())Creates a MemberMemberBinding that represents the recursive initialization of members of a field or property.
Public methodStatic memberSupported by Portable Class LibraryMemberBind(MethodInfo, IEnumerable(Of MemberBinding))Creates a MemberMemberBinding that represents the recursive initialization of members of a member that is accessed by using a property accessor method.
Public methodStatic memberSupported by Portable Class LibraryMemberBind(MethodInfo, MemberBinding())Creates a MemberMemberBinding that represents the recursive initialization of members of a member that is accessed by using a property accessor method.
Public methodStatic memberSupported by Portable Class LibraryMemberInit(NewExpression, IEnumerable(Of MemberBinding))Represents an expression that creates a new object and initializes a property of the object.
Public methodStatic memberSupported by Portable Class LibraryMemberInit(NewExpression, MemberBinding())Creates a MemberInitExpression.
Protected methodSupported by Portable Class LibraryMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberSupported by Portable Class LibraryModulo(Expression, Expression)Creates a BinaryExpression that represents an arithmetic remainder operation.
Public methodStatic memberSupported by Portable Class LibraryModulo(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents an arithmetic remainder operation.
Public methodStatic memberSupported by Portable Class LibraryModuloAssign(Expression, Expression)Creates a BinaryExpression that represents a remainder assignment operation.
Public methodStatic memberSupported by Portable Class LibraryModuloAssign(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a remainder assignment operation.
Public methodStatic memberSupported by Portable Class LibraryModuloAssign(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents a remainder assignment operation.
Public methodStatic memberSupported by Portable Class LibraryMultiply(Expression, Expression)Creates a BinaryExpression that represents an arithmetic multiplication operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibraryMultiply(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents an arithmetic multiplication operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibraryMultiplyAssign(Expression, Expression)Creates a BinaryExpression that represents a multiplication assignment operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibraryMultiplyAssign(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a multiplication assignment operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibraryMultiplyAssign(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents a multiplication assignment operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibraryMultiplyAssignChecked(Expression, Expression)Creates a BinaryExpression that represents a multiplication assignment operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibraryMultiplyAssignChecked(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a multiplication assignment operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibraryMultiplyAssignChecked(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents a multiplication assignment operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibraryMultiplyChecked(Expression, Expression)Creates a BinaryExpression that represents an arithmetic multiplication operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibraryMultiplyChecked(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents an arithmetic multiplication operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibraryNegate(Expression)Creates a UnaryExpression that represents an arithmetic negation operation.
Public methodStatic memberSupported by Portable Class LibraryNegate(Expression, MethodInfo)Creates a UnaryExpression that represents an arithmetic negation operation.
Public methodStatic memberSupported by Portable Class LibraryNegateChecked(Expression)Creates a UnaryExpression that represents an arithmetic negation operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibraryNegateChecked(Expression, MethodInfo)Creates a UnaryExpression that represents an arithmetic negation operation that has overflow checking. The implementing method can be specified.
Public methodStatic memberSupported by Portable Class LibraryNew(ConstructorInfo)Creates a NewExpression that represents calling the specified constructor that takes no arguments.
Public methodStatic memberSupported by Portable Class LibraryNew(Type)Creates a NewExpression that represents calling the parameterless constructor of the specified type.
Public methodStatic memberSupported by Portable Class LibraryNew(ConstructorInfo, IEnumerable(Of Expression))Creates a NewExpression that represents calling the specified constructor with the specified arguments.
Public methodStatic memberSupported by Portable Class LibraryNew(ConstructorInfo, Expression())Creates a NewExpression that represents calling the specified constructor with the specified arguments.
Public methodStatic memberSupported by Portable Class LibraryNew(ConstructorInfo, IEnumerable(Of Expression), IEnumerable(Of MemberInfo))Creates a NewExpression that represents calling the specified constructor with the specified arguments. The members that access the constructor initialized fields are specified.
Public methodStatic memberSupported by Portable Class LibraryNew(ConstructorInfo, IEnumerable(Of Expression), MemberInfo())Creates a NewExpression that represents calling the specified constructor with the specified arguments. The members that access the constructor initialized fields are specified as an array.
Public methodStatic memberSupported by Portable Class LibraryNewArrayBounds(Type, IEnumerable(Of Expression))Creates a NewArrayExpression that represents creating an array that has a specified rank.
Public methodStatic memberSupported by Portable Class LibraryNewArrayBounds(Type, Expression())Creates a NewArrayExpression that represents creating an array that has a specified rank.
Public methodStatic memberSupported by Portable Class LibraryNewArrayInit(Type, IEnumerable(Of Expression))Creates a NewArrayExpression that represents creating a one-dimensional array and initializing it from a list of elements.
Public methodStatic memberSupported by Portable Class LibraryNewArrayInit(Type, Expression())Creates a NewArrayExpression that represents creating a one-dimensional array and initializing it from a list of elements.
Public methodStatic memberSupported by Portable Class LibraryNot(Expression)Creates a UnaryExpression that represents a bitwise complement operation.
Public methodStatic memberSupported by Portable Class LibraryNot(Expression, MethodInfo)Creates a UnaryExpression that represents a bitwise complement operation. The implementing method can be specified.
Public methodStatic memberSupported by Portable Class LibraryNotEqual(Expression, Expression)Creates a BinaryExpression that represents an inequality comparison.
Public methodStatic memberSupported by Portable Class LibraryNotEqual(Expression, Expression, Boolean, MethodInfo)Creates a BinaryExpression that represents an inequality comparison.
Public methodStatic memberSupported by Portable Class LibraryOnesComplement(Expression)Returns the expression representing the ones complement.
Public methodStatic memberSupported by Portable Class LibraryOnesComplement(Expression, MethodInfo)Returns the expression representing the ones complement.
Public methodStatic memberSupported by Portable Class LibraryOr(Expression, Expression)Creates a BinaryExpression that represents a bitwise OR operation.
Public methodStatic memberSupported by Portable Class LibraryOr(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a bitwise OR operation.
Public methodStatic memberSupported by Portable Class LibraryOrAssign(Expression, Expression)Creates a BinaryExpression that represents a bitwise OR assignment operation.
Public methodStatic memberSupported by Portable Class LibraryOrAssign(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a bitwise OR assignment operation.
Public methodStatic memberSupported by Portable Class LibraryOrAssign(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents a bitwise OR assignment operation.
Public methodStatic memberSupported by Portable Class LibraryOrElse(Expression, Expression)Creates a BinaryExpression that represents a conditional OR operation that evaluates the second operand only if the first operand evaluates to false.
Public methodStatic memberSupported by Portable Class LibraryOrElse(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a conditional OR operation that evaluates the second operand only if the first operand evaluates to false.
Public methodStatic memberSupported by Portable Class LibraryParameter(Type)Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.
Public methodStatic memberSupported by Portable Class LibraryParameter(Type, String)Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.
Public methodStatic memberSupported by Portable Class LibraryPostDecrementAssign(Expression)Creates a UnaryExpression that represents the assignment of the expression followed by a subsequent decrement by 1 of the original expression.
Public methodStatic memberSupported by Portable Class LibraryPostDecrementAssign(Expression, MethodInfo)Creates a UnaryExpression that represents the assignment of the expression followed by a subsequent decrement by 1 of the original expression.
Public methodStatic memberSupported by Portable Class LibraryPostIncrementAssign(Expression)Creates a UnaryExpression that represents the assignment of the expression followed by a subsequent increment by 1 of the original expression.
Public methodStatic memberSupported by Portable Class LibraryPostIncrementAssign(Expression, MethodInfo)Creates a UnaryExpression that represents the assignment of the expression followed by a subsequent increment by 1 of the original expression.
Public methodStatic memberSupported by Portable Class LibraryPower(Expression, Expression)Creates a BinaryExpression that represents raising a number to a power.
Public methodStatic memberSupported by Portable Class LibraryPower(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents raising a number to a power.
Public methodStatic memberSupported by Portable Class LibraryPowerAssign(Expression, Expression)Creates a BinaryExpression that represents raising an expression to a power and assigning the result back to the expression.
Public methodStatic memberSupported by Portable Class LibraryPowerAssign(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents raising an expression to a power and assigning the result back to the expression.
Public methodStatic memberSupported by Portable Class LibraryPowerAssign(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents raising an expression to a power and assigning the result back to the expression.
Public methodStatic memberSupported by Portable Class LibraryPreDecrementAssign(Expression)Creates a UnaryExpression that decrements the expression by 1 and assigns the result back to the expression.
Public methodStatic memberSupported by Portable Class LibraryPreDecrementAssign(Expression, MethodInfo)Creates a UnaryExpression that decrements the expression by 1 and assigns the result back to the expression.
Public methodStatic memberSupported by Portable Class LibraryPreIncrementAssign(Expression)Creates a UnaryExpression that increments the expression by 1 and assigns the result back to the expression.
Public methodStatic memberSupported by Portable Class LibraryPreIncrementAssign(Expression, MethodInfo)Creates a UnaryExpression that increments the expression by 1 and assigns the result back to the expression.
Public methodStatic memberSupported by Portable Class LibraryProperty(Expression, MethodInfo)Creates a MemberExpression that represents accessing a property by using a property accessor method.
Public methodStatic memberSupported by Portable Class LibraryProperty(Expression, PropertyInfo)Creates a MemberExpression that represents accessing a property.
Public methodStatic memberSupported by Portable Class LibraryProperty(Expression, String)Creates a MemberExpression that represents accessing a property.
Public methodStatic memberSupported by Portable Class LibraryProperty(Expression, PropertyInfo, IEnumerable(Of Expression))Creates an IndexExpression representing the access to an indexed property.
Public methodStatic memberSupported by Portable Class LibraryProperty(Expression, PropertyInfo, Expression())Creates an IndexExpression representing the access to an indexed property.
Public methodStatic memberSupported by Portable Class LibraryProperty(Expression, String, Expression())Creates an IndexExpression representing the access to an indexed property.
Public methodStatic memberSupported by Portable Class LibraryProperty(Expression, Type, String)Creates a MemberExpression accessing a property.
Public methodStatic memberSupported by Portable Class LibraryPropertyOrFieldCreates a MemberExpression that represents accessing a property or field.
Public methodStatic memberSupported by Portable Class LibraryQuoteCreates a UnaryExpression that represents an expression that has a constant value of type Expression.
Public methodSupported by Portable Class LibraryReduceReduces this node to a simpler expression. If CanReduce returns true, this should return a valid expression. This method can return another node which itself must be reduced.
Public methodSupported by Portable Class LibraryReduceAndCheckReduces this node to a simpler expression. If CanReduce returns true, this should return a valid expression. This method can return another node which itself must be reduced.
Public methodSupported by Portable Class LibraryReduceExtensionsReduces the expression to a known node type (that is not an Extension node) or just returns the expression if it is already a known type.
Public methodStatic memberSupported by Portable Class LibraryReferenceEqualCreates a BinaryExpression that represents a reference equality comparison.
Public methodStatic memberSupported by Portable Class LibraryReferenceNotEqualCreates a BinaryExpression that represents a reference inequality comparison.
Public methodStatic memberSupported by Portable Class LibraryRethrowCreates a UnaryExpression that represents a rethrowing of an exception.
Public methodStatic memberSupported by Portable Class LibraryRethrow(Type)Creates a UnaryExpression that represents a rethrowing of an exception with a given type.
Public methodStatic memberSupported by Portable Class LibraryReturn(LabelTarget)Creates a GotoExpression representing a return statement.
Public methodStatic memberSupported by Portable Class LibraryReturn(LabelTarget, Expression)Creates a GotoExpression representing a return statement. The value passed to the label upon jumping can be specified.
Public methodStatic memberSupported by Portable Class LibraryReturn(LabelTarget, Type)Creates a GotoExpression representing a return statement with the specified type.
Public methodStatic memberSupported by Portable Class LibraryReturn(LabelTarget, Expression, Type)Creates a GotoExpression representing a return statement with the specified type. The value passed to the label upon jumping can be specified.
Public methodStatic memberSupported by Portable Class LibraryRightShift(Expression, Expression)Creates a BinaryExpression that represents a bitwise right-shift operation.
Public methodStatic memberSupported by Portable Class LibraryRightShift(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a bitwise right-shift operation.
Public methodStatic memberSupported by Portable Class LibraryRightShiftAssign(Expression, Expression)Creates a BinaryExpression that represents a bitwise right-shift assignment operation.
Public methodStatic memberSupported by Portable Class LibraryRightShiftAssign(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a bitwise right-shift assignment operation.
Public methodStatic memberSupported by Portable Class LibraryRightShiftAssign(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents a bitwise right-shift assignment operation.
Public methodStatic memberSupported by Portable Class LibraryRuntimeVariables(IEnumerable(Of ParameterExpression))Creates an instance of RuntimeVariablesExpression.
Public methodStatic memberSupported by Portable Class LibraryRuntimeVariables(ParameterExpression())Creates an instance of RuntimeVariablesExpression.
Public methodStatic memberSupported by Portable Class LibrarySubtract(Expression, Expression)Creates a BinaryExpression that represents an arithmetic subtraction operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibrarySubtract(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents an arithmetic subtraction operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibrarySubtractAssign(Expression, Expression)Creates a BinaryExpression that represents a subtraction assignment operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibrarySubtractAssign(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a subtraction assignment operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibrarySubtractAssign(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents a subtraction assignment operation that does not have overflow checking.
Public methodStatic memberSupported by Portable Class LibrarySubtractAssignChecked(Expression, Expression)Creates a BinaryExpression that represents a subtraction assignment operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibrarySubtractAssignChecked(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents a subtraction assignment operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibrarySubtractAssignChecked(Expression, Expression, MethodInfo, LambdaExpression)Creates a BinaryExpression that represents a subtraction assignment operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibrarySubtractChecked(Expression, Expression)Creates a BinaryExpression that represents an arithmetic subtraction operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibrarySubtractChecked(Expression, Expression, MethodInfo)Creates a BinaryExpression that represents an arithmetic subtraction operation that has overflow checking.
Public methodStatic memberSupported by Portable Class LibrarySwitch(Expression, SwitchCase())Creates a SwitchExpression that represents a switch statement without a default case.
Public methodStatic memberSupported by Portable Class LibrarySwitch(Expression, Expression, SwitchCase())Creates a SwitchExpression that represents a switch statement that has a default case.
Public methodStatic memberSupported by Portable Class LibrarySwitch(Expression, Expression, MethodInfo, IEnumerable(Of SwitchCase))Creates a SwitchExpression that represents a switch statement that has a default case.
Public methodStatic memberSupported by Portable Class LibrarySwitch(Expression, Expression, MethodInfo, SwitchCase())Creates a SwitchExpression that represents a switch statement that has a default case.
Public methodStatic memberSupported by Portable Class LibrarySwitch(Type, Expression, Expression, MethodInfo, IEnumerable(Of SwitchCase))Creates a SwitchExpression that represents a switch statement that has a default case.
Public methodStatic memberSupported by Portable Class LibrarySwitch(Type, Expression, Expression, MethodInfo, SwitchCase())Creates a SwitchExpression that represents a switch statement that has a default case..
Public methodStatic memberSupported by Portable Class LibrarySwitchCase(Expression, IEnumerable(Of Expression))Creates a SwitchCase object to be used in a SwitchExpression object.
Public methodStatic memberSupported by Portable Class LibrarySwitchCase(Expression, Expression())Creates a SwitchCase for use in a SwitchExpression.
Public methodStatic memberSupported by Portable Class LibrarySymbolDocument(String)Creates an instance of SymbolDocumentInfo.
Public methodStatic memberSupported by Portable Class LibrarySymbolDocument(String, Guid)Creates an instance of SymbolDocumentInfo.
Public methodStatic memberSupported by Portable Class LibrarySymbolDocument(String, Guid, Guid)Creates an instance of SymbolDocumentInfo.
Public methodStatic memberSupported by Portable Class LibrarySymbolDocument(String, Guid, Guid, Guid)Creates an instance of SymbolDocumentInfo.
Public methodStatic memberSupported by Portable Class LibraryThrow(Expression)Creates a UnaryExpression that represents a throwing of an exception.
Public methodStatic memberSupported by Portable Class LibraryThrow(Expression, Type)Creates a UnaryExpression that represents a throwing of an exception with a given type.
Public methodSupported by Portable Class LibraryToStringReturns a textual representation of the Expression. (Overrides Object.ToString.)
Public methodStatic memberSupported by Portable Class LibraryTryCatchCreates a TryExpression representing a try block with any number of catch statements and neither a fault nor finally block.
Public methodStatic memberSupported by Portable Class LibraryTryCatchFinallyCreates a TryExpression representing a try block with any number of catch statements and a finally block.
Public methodStatic memberSupported by Portable Class LibraryTryFaultCreates a TryExpression representing a try block with a fault block and no catch statements.
Public methodStatic memberSupported by Portable Class LibraryTryFinallyCreates a TryExpression representing a try block with a finally block and no catch statements.
Public methodStatic memberSupported by Portable Class LibraryTryGetActionTypeCreates a Type object that represents a generic System.Action delegate type that has specific type arguments.
Public methodStatic memberSupported by Portable Class LibraryTryGetFuncTypeCreates a Type object that represents a generic System.Func delegate type that has specific type arguments. The last type argument specifies the return type of the created delegate.
Public methodStatic memberSupported by Portable Class LibraryTypeAsCreates a UnaryExpression that represents an explicit reference or boxing conversion where Nothing is supplied if the conversion fails.
Public methodStatic memberSupported by Portable Class LibraryTypeEqualCreates a TypeBinaryExpression that compares run-time type identity.
Public methodStatic memberSupported by Portable Class LibraryTypeIsCreates a TypeBinaryExpression.
Public methodStatic memberSupported by Portable Class LibraryUnaryPlus(Expression)Creates a UnaryExpression that represents a unary plus operation.
Public methodStatic memberSupported by Portable Class LibraryUnaryPlus(Expression, MethodInfo)Creates a UnaryExpression that represents a unary plus operation.
Public methodStatic memberSupported by Portable Class LibraryUnboxCreates a UnaryExpression that represents an explicit unboxing.
Public methodStatic memberSupported by Portable Class LibraryVariable(Type)Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.
Public methodStatic memberSupported by Portable Class LibraryVariable(Type, String)Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.
Protected methodSupported by Portable Class LibraryVisitChildrenReduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.
Top

The following code example shows how to create a block expression. The block expression consists of two MethodCallExpression objects and one ConstantExpression object.

' Add the following directive to your file: 
' Imports System.Linq.Expressions 

' The block expression enables you to execute several expressions sequentually. 
' When the block expression is executed, 
' it returns the value of the last expression in the sequence. 
Dim blockExpr As BlockExpression = Expression.Block(
    Expression.Call(
        Nothing,
        GetType(Console).GetMethod("Write", New Type() {GetType(String)}),
        Expression.Constant("Hello ")
       ),
    Expression.Call(
        Nothing,
        GetType(Console).GetMethod("WriteLine", New Type() {GetType(String)}),
        Expression.Constant("World!")
        ),
    Expression.Constant(42)
)

Console.WriteLine("The result of executing the expression tree:")
' The following statement first creates an expression tree, 
' then compiles it, and then executes it.            
Dim result = Expression.Lambda(Of Func(Of Integer))(blockExpr).Compile()()

' Print the expressions from the block expression.
Console.WriteLine("The expressions from the block expression:")
For Each expr In blockExpr.Expressions
    Console.WriteLine(expr.ToString())
Next 

' Print the result of the tree execution.
Console.WriteLine("The return value of the block expression:")
Console.WriteLine(result)

' This code example produces the following output: 

' The result of executing the expression tree: 
' Hello World! 

' The expressions from the block expression: 
' Write("Hello ") 
' WriteLine("World!") 
' 42 

' The return value of the block expression: 
' 42

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2015 Microsoft