Interface IExpressionSlimFactory
Interface for expression factories.
Namespace: System.Linq.Expressions
Assembly: Nuqleon.Linq.Expressions.Bonsai.dll
Syntax
public interface IExpressionSlimFactory
Methods
Add(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents an arithmetic addition operation that does not have overflow checking.
Declaration
BinaryExpressionSlim Add(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | A ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | A ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Add and the Left and Right properties set to the specified values. |
Add(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents an arithmetic addition operation that does not have overflow checking. The implementing method can be specified.
Declaration
BinaryExpressionSlim Add(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | A ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | A ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Add and the Left, Right and Method properties set to the specified values. |
AddAssign(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents an addition assignment operation that does not have overflow checking.
Declaration
BinaryExpressionSlim AddAssign(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.AddAssign and the Left and Right properties set to the specified values. |
AddAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents an addition assignment operation that does not have overflow checking.
Declaration
BinaryExpressionSlim AddAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.AddAssign and the Left, Right, and Method properties set to the specified values. |
AddAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents an addition assignment operation that does not have overflow checking.
Declaration
BinaryExpressionSlim AddAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.AddAssign and the Left, Right, Method, and Conversion properties set to the specified values. |
AddAssignChecked(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents an addition assignment operation that has overflow checking.
Declaration
BinaryExpressionSlim AddAssignChecked(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.AddAssignChecked and the Left and Right properties set to the specified values. |
AddAssignChecked(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents an addition assignment operation that has overflow checking.
Declaration
BinaryExpressionSlim AddAssignChecked(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.AddAssignChecked and the Left, Right, and Method properties set to the specified values. |
AddAssignChecked(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents an addition assignment operation that has overflow checking.
Declaration
BinaryExpressionSlim AddAssignChecked(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.AddAssignChecked and the Left, Right, Method, and Conversion properties set to the specified values. |
AddChecked(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents an arithmetic addition operation that has overflow checking.
Declaration
BinaryExpressionSlim AddChecked(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | A ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | A ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.AddChecked and the Left and Right properties set to the specified values. |
AddChecked(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents an arithmetic addition operation that has overflow checking. The implementing method can be specified.
Declaration
BinaryExpressionSlim AddChecked(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | A ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | A ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.AddChecked and the Left, Right and Method properties set to the specified values. |
And(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise langword_csharp_AND operation.
Declaration
BinaryExpressionSlim And(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | A ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | A ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.And and the Left and Right properties set to the specified values. |
And(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a bitwise langword_csharp_AND operation. The implementing method can be specified.
Declaration
BinaryExpressionSlim And(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.And and the Left, Right, and Method properties set to the specified values. |
AndAlso(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a conditional langword_csharp_AND operation that evaluates the second operand only if the first operand evaluates to true.
Declaration
BinaryExpressionSlim AndAlso(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | A ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | A ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.AndAlso and the Left and Right properties set to the specified values. |
AndAlso(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a conditional langword_csharp_AND operation that evaluates the second operand only if the first operand is resolved to true. The implementing method can be specified.
Declaration
BinaryExpressionSlim AndAlso(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | A ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | A ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.AndAlso and the Left, Right, and Method properties set to the specified values. |
AndAssign(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise AND assignment operation.
Declaration
BinaryExpressionSlim AndAssign(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.AndAssign and the Left and Right properties set to the specified values. |
AndAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a bitwise AND assignment operation.
Declaration
BinaryExpressionSlim AndAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.AndAssign and the Left, Right, and Method properties set to the specified values. |
AndAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise AND assignment operation.
Declaration
BinaryExpressionSlim AndAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.AndAssign and the Left, Right, Method, and Conversion properties set to the specified values. |
ArrayAccess(ExpressionSlim, IEnumerable<ExpressionSlim>)
Creates an IndexExpressionSlim to access a multidimensional array.
Declaration
IndexExpressionSlim ArrayAccess(ExpressionSlim array, IEnumerable<ExpressionSlim> indexes)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | array | An expression that represents the multidimensional array. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | indexes | An System.Collections.Generic.IEnumerable<> containing expressions used to index the array. |
Returns
Type | Description |
---|---|
IndexExpressionSlim | The created IndexExpressionSlim. |
ArrayAccess(ExpressionSlim, ExpressionSlim[])
Creates an IndexExpressionSlim to access an array.
Declaration
IndexExpressionSlim ArrayAccess(ExpressionSlim array, params ExpressionSlim[] indexes)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | array | An expression representing the array to index. |
ExpressionSlim[] | indexes | An array that contains expressions used to index the array. |
Returns
Type | Description |
---|---|
IndexExpressionSlim | The created IndexExpressionSlim. |
ArrayIndex(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents applying an array index operator to an array of rank one.
Declaration
BinaryExpressionSlim ArrayIndex(ExpressionSlim array, ExpressionSlim index)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | array | A ExpressionSlim to set the Left property equal to. |
ExpressionSlim | index | A ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ArrayIndex and the Left and Right properties set to the specified values. |
ArrayLength(ExpressionSlim)
Creates a UnaryExpressionSlim that represents an expression for obtaining the length of a one-dimensional array.
Declaration
UnaryExpressionSlim ArrayLength(ExpressionSlim array)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | array | An ExpressionSlim to set the Operand property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ArrayLength and the Operand property equal to |
Assign(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents an assignment operation.
Declaration
BinaryExpressionSlim Assign(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Assign and the Left and Right properties set to the specified values. |
Bind(MemberInfoSlim, ExpressionSlim)
Creates a MemberAssignmentSlim that represents the initialization of a field or property.
Declaration
MemberAssignmentSlim Bind(MemberInfoSlim member, ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
MemberInfoSlim | member | A MemberInfoSlim to set the Member property equal to. |
ExpressionSlim | expression | An ExpressionSlim to set the Expression property equal to. |
Returns
Type | Description |
---|---|
MemberAssignmentSlim | A MemberAssignmentSlim that has BindingType equal to System.Linq.Expressions.MemberBindingType.Assignment and the Member and Expression properties set to the specified values. |
Block(IEnumerable<ExpressionSlim>)
Creates a BlockExpressionSlim that contains the given expressions and has no variables.
Declaration
BlockExpressionSlim Block(IEnumerable<ExpressionSlim> expressions)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ExpressionSlim> | expressions | The expressions in the block. |
Returns
Type | Description |
---|---|
BlockExpressionSlim | The created BlockExpressionSlim. |
Block(IEnumerable<ParameterExpressionSlim>, IEnumerable<ExpressionSlim>)
Creates a BlockExpressionSlim that contains the given variables and expressions.
Declaration
BlockExpressionSlim Block(IEnumerable<ParameterExpressionSlim> variables, IEnumerable<ExpressionSlim> expressions)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ParameterExpressionSlim> | variables | The variables in the block. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | expressions | The expressions in the block. |
Returns
Type | Description |
---|---|
BlockExpressionSlim | The created BlockExpressionSlim. |
Block(IEnumerable<ParameterExpressionSlim>, ExpressionSlim[])
Creates a BlockExpressionSlim that contains the given variables and expressions.
Declaration
BlockExpressionSlim Block(IEnumerable<ParameterExpressionSlim> variables, params ExpressionSlim[] expressions)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ParameterExpressionSlim> | variables | The variables in the block. |
ExpressionSlim[] | expressions | The expressions in the block. |
Returns
Type | Description |
---|---|
BlockExpressionSlim | The created BlockExpressionSlim. |
Block(ExpressionSlim, ExpressionSlim)
Creates a BlockExpressionSlim that contains two expressions and has no variables.
Declaration
BlockExpressionSlim Block(ExpressionSlim arg0, ExpressionSlim arg1)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | arg0 | The first expression in the block. |
ExpressionSlim | arg1 | The second expression in the block. |
Returns
Type | Description |
---|---|
BlockExpressionSlim | The created BlockExpressionSlim. |
Block(ExpressionSlim, ExpressionSlim, ExpressionSlim)
Creates a BlockExpressionSlim that contains three expressions and has no variables.
Declaration
BlockExpressionSlim Block(ExpressionSlim arg0, ExpressionSlim arg1, ExpressionSlim arg2)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | arg0 | The first expression in the block. |
ExpressionSlim | arg1 | The second expression in the block. |
ExpressionSlim | arg2 | The third expression in the block. |
Returns
Type | Description |
---|---|
BlockExpressionSlim | The created BlockExpressionSlim. |
Block(ExpressionSlim, ExpressionSlim, ExpressionSlim, ExpressionSlim)
Creates a BlockExpressionSlim that contains four expressions and has no variables.
Declaration
BlockExpressionSlim Block(ExpressionSlim arg0, ExpressionSlim arg1, ExpressionSlim arg2, ExpressionSlim arg3)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | arg0 | The first expression in the block. |
ExpressionSlim | arg1 | The second expression in the block. |
ExpressionSlim | arg2 | The third expression in the block. |
ExpressionSlim | arg3 | The fourth expression in the block. |
Returns
Type | Description |
---|---|
BlockExpressionSlim | The created BlockExpressionSlim. |
Block(ExpressionSlim, ExpressionSlim, ExpressionSlim, ExpressionSlim, ExpressionSlim)
Creates a BlockExpressionSlim that contains five expressions and has no variables.
Declaration
BlockExpressionSlim Block(ExpressionSlim arg0, ExpressionSlim arg1, ExpressionSlim arg2, ExpressionSlim arg3, ExpressionSlim arg4)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | arg0 | The first expression in the block. |
ExpressionSlim | arg1 | The second expression in the block. |
ExpressionSlim | arg2 | The third expression in the block. |
ExpressionSlim | arg3 | The fourth expression in the block. |
ExpressionSlim | arg4 | The fifth expression in the block. |
Returns
Type | Description |
---|---|
BlockExpressionSlim | The created BlockExpressionSlim. |
Block(ExpressionSlim[])
Creates a BlockExpressionSlim that contains the given expressions and has no variables.
Declaration
BlockExpressionSlim Block(params ExpressionSlim[] expressions)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim[] | expressions | The expressions in the block. |
Returns
Type | Description |
---|---|
BlockExpressionSlim | The created BlockExpressionSlim. |
Block(TypeSlim, IEnumerable<ExpressionSlim>)
Creates a BlockExpressionSlim that contains the given expressions, has no variables and has specific result type.
Declaration
BlockExpressionSlim Block(TypeSlim type, IEnumerable<ExpressionSlim> expressions)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The result type of the block. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | expressions | The expressions in the block. |
Returns
Type | Description |
---|---|
BlockExpressionSlim | The created BlockExpressionSlim. |
Block(TypeSlim, IEnumerable<ParameterExpressionSlim>, IEnumerable<ExpressionSlim>)
Creates a BlockExpressionSlim that contains the given variables and expressions.
Declaration
BlockExpressionSlim Block(TypeSlim type, IEnumerable<ParameterExpressionSlim> variables, IEnumerable<ExpressionSlim> expressions)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The result type of the block. |
System.Collections.Generic.IEnumerable<ParameterExpressionSlim> | variables | The variables in the block. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | expressions | The expressions in the block. |
Returns
Type | Description |
---|---|
BlockExpressionSlim | The created BlockExpressionSlim. |
Block(TypeSlim, IEnumerable<ParameterExpressionSlim>, ExpressionSlim[])
Creates a BlockExpressionSlim that contains the given variables and expressions.
Declaration
BlockExpressionSlim Block(TypeSlim type, IEnumerable<ParameterExpressionSlim> variables, params ExpressionSlim[] expressions)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The result type of the block. |
System.Collections.Generic.IEnumerable<ParameterExpressionSlim> | variables | The variables in the block. |
ExpressionSlim[] | expressions | The expressions in the block. |
Returns
Type | Description |
---|---|
BlockExpressionSlim | The created BlockExpressionSlim. |
Block(TypeSlim, ExpressionSlim[])
Creates a BlockExpressionSlim that contains the given expressions, has no variables and has specific result type.
Declaration
BlockExpressionSlim Block(TypeSlim type, params ExpressionSlim[] expressions)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The result type of the block. |
ExpressionSlim[] | expressions | The expressions in the block. |
Returns
Type | Description |
---|---|
BlockExpressionSlim | The created BlockExpressionSlim. |
Break(LabelTargetSlim)
Creates a GotoExpressionSlim representing a break statement.
Declaration
GotoExpressionSlim Break(LabelTargetSlim target)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Break, the Target property set to |
Break(LabelTargetSlim, ExpressionSlim)
Creates a GotoExpressionSlim representing a break statement. The value passed to the label upon jumping can be specified.
Declaration
GotoExpressionSlim Break(LabelTargetSlim target, ExpressionSlim value)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
ExpressionSlim | value | The value that will be passed to the associated label upon jumping. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Break, the Target property set to |
Break(LabelTargetSlim, ExpressionSlim, TypeSlim)
Creates a GotoExpressionSlim representing a break statement with the specified type. The value passed to the label upon jumping can be specified.
Declaration
GotoExpressionSlim Break(LabelTargetSlim target, ExpressionSlim value, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
ExpressionSlim | value | The value that will be passed to the associated label upon jumping. |
TypeSlim | type | An TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Break, the Target property set to |
Break(LabelTargetSlim, TypeSlim)
Creates a GotoExpressionSlim representing a break statement with the specified type.
Declaration
GotoExpressionSlim Break(LabelTargetSlim target, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
TypeSlim | type | An TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Break, the Target property set to |
Call(ExpressionSlim, MethodInfoSlim)
Creates a MethodCallExpressionSlim that represents a call to a method that takes no arguments.
Declaration
MethodCallExpressionSlim Call(ExpressionSlim instance, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | instance | An ExpressionSlim that specifies the instance for an instance method call (pass null for a static (langword_csharp_Shared in Visual Basic) method). |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
MethodCallExpressionSlim | A MethodCallExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Call and the System.Linq.Expressions.MethodCallExpressionSlim.ObjectSlim and Method properties set to the specified values. |
Call(ExpressionSlim, MethodInfoSlim, IEnumerable<ExpressionSlim>)
Creates a MethodCallExpressionSlim that represents a call to a method that takes arguments.
Declaration
MethodCallExpressionSlim Call(ExpressionSlim instance, MethodInfoSlim method, IEnumerable<ExpressionSlim> arguments)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | instance | An ExpressionSlim to set the System.Linq.Expressions.MethodCallExpressionSlim.ObjectSlim property equal to (pass null for a static (langword_csharp_Shared in Visual Basic) method). |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | arguments | An System.Collections.Generic.IEnumerable<> that contains ExpressionSlim objects to use to populate the Arguments collection. |
Returns
Type | Description |
---|---|
MethodCallExpressionSlim | A MethodCallExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Call and the System.Linq.Expressions.MethodCallExpressionSlim.ObjectSlim, Method, and Arguments properties set to the specified values. |
Call(ExpressionSlim, MethodInfoSlim, ExpressionSlim, ExpressionSlim)
Creates a MethodCallExpressionSlim that represents a call to a method that takes two arguments.
Declaration
MethodCallExpressionSlim Call(ExpressionSlim instance, MethodInfoSlim method, ExpressionSlim arg0, ExpressionSlim arg1)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | instance | An ExpressionSlim that specifies the instance for an instance call. (pass null for a static (Shared in Visual Basic) method). |
MethodInfoSlim | method | The MethodInfoSlim that represents the target method. |
ExpressionSlim | arg0 | The ExpressionSlim that represents the first argument. |
ExpressionSlim | arg1 | The ExpressionSlim that represents the second argument. |
Returns
Type | Description |
---|---|
MethodCallExpressionSlim | A MethodCallExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Call and the System.Linq.Expressions.MethodCallExpressionSlim.ObjectSlim and Method properties set to the specified values. |
Call(ExpressionSlim, MethodInfoSlim, ExpressionSlim, ExpressionSlim, ExpressionSlim)
Creates a MethodCallExpressionSlim that represents a call to a method that takes three arguments.
Declaration
MethodCallExpressionSlim Call(ExpressionSlim instance, MethodInfoSlim method, ExpressionSlim arg0, ExpressionSlim arg1, ExpressionSlim arg2)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | instance | An ExpressionSlim that specifies the instance for an instance call. (pass null for a static (Shared in Visual Basic) method). |
MethodInfoSlim | method | The MethodInfoSlim that represents the target method. |
ExpressionSlim | arg0 | The ExpressionSlim that represents the first argument. |
ExpressionSlim | arg1 | The ExpressionSlim that represents the second argument. |
ExpressionSlim | arg2 | The ExpressionSlim that represents the third argument. |
Returns
Type | Description |
---|---|
MethodCallExpressionSlim | A MethodCallExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Call and the System.Linq.Expressions.MethodCallExpressionSlim.ObjectSlim and Method properties set to the specified values. |
Call(ExpressionSlim, MethodInfoSlim, ExpressionSlim[])
Creates a MethodCallExpressionSlim that represents a call to a method that takes arguments.
Declaration
MethodCallExpressionSlim Call(ExpressionSlim instance, MethodInfoSlim method, params ExpressionSlim[] arguments)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | instance | An ExpressionSlim that specifies the instance for an instance method call (pass null for a static (langword_csharp_Shared in Visual Basic) method). |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
ExpressionSlim[] | arguments | An array of ExpressionSlim objects to use to populate the Arguments collection. |
Returns
Type | Description |
---|---|
MethodCallExpressionSlim | A MethodCallExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Call and the System.Linq.Expressions.MethodCallExpressionSlim.ObjectSlim, Method, and Arguments properties set to the specified values. |
Call(MethodInfoSlim, IEnumerable<ExpressionSlim>)
Creates a MethodCallExpressionSlim that represents a call to a static (Shared in Visual Basic) method.
Declaration
MethodCallExpressionSlim Call(MethodInfoSlim method, IEnumerable<ExpressionSlim> arguments)
Parameters
Type | Name | Description |
---|---|---|
MethodInfoSlim | method | The MethodInfoSlim that represents the target method. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | arguments | A collection of ExpressionSlim that represents the call arguments. |
Returns
Type | Description |
---|---|
MethodCallExpressionSlim | A MethodCallExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Call and the System.Linq.Expressions.MethodCallExpressionSlim.ObjectSlim and Method properties set to the specified values. |
Call(MethodInfoSlim, ExpressionSlim)
Creates a MethodCallExpressionSlim that represents a call to a static (langword_csharp_Shared in Visual Basic) method that takes one argument.
Declaration
MethodCallExpressionSlim Call(MethodInfoSlim method, ExpressionSlim arg0)
Parameters
Type | Name | Description |
---|---|---|
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
ExpressionSlim | arg0 | The ExpressionSlim that represents the first argument. |
Returns
Type | Description |
---|---|
MethodCallExpressionSlim | A MethodCallExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Call and the System.Linq.Expressions.MethodCallExpressionSlim.ObjectSlim and Method properties set to the specified values. |
Call(MethodInfoSlim, ExpressionSlim, ExpressionSlim)
Creates a MethodCallExpressionSlim that represents a call to a static method that takes two arguments.
Declaration
MethodCallExpressionSlim Call(MethodInfoSlim method, ExpressionSlim arg0, ExpressionSlim arg1)
Parameters
Type | Name | Description |
---|---|---|
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
ExpressionSlim | arg0 | The ExpressionSlim that represents the first argument. |
ExpressionSlim | arg1 | The ExpressionSlim that represents the second argument. |
Returns
Type | Description |
---|---|
MethodCallExpressionSlim | A MethodCallExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Call and the System.Linq.Expressions.MethodCallExpressionSlim.ObjectSlim and Method properties set to the specified values. |
Call(MethodInfoSlim, ExpressionSlim, ExpressionSlim, ExpressionSlim)
Creates a MethodCallExpressionSlim that represents a call to a static method that takes three arguments.
Declaration
MethodCallExpressionSlim Call(MethodInfoSlim method, ExpressionSlim arg0, ExpressionSlim arg1, ExpressionSlim arg2)
Parameters
Type | Name | Description |
---|---|---|
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
ExpressionSlim | arg0 | The ExpressionSlim that represents the first argument. |
ExpressionSlim | arg1 | The ExpressionSlim that represents the second argument. |
ExpressionSlim | arg2 | The ExpressionSlim that represents the third argument. |
Returns
Type | Description |
---|---|
MethodCallExpressionSlim | A MethodCallExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Call and the System.Linq.Expressions.MethodCallExpressionSlim.ObjectSlim and Method properties set to the specified values. |
Call(MethodInfoSlim, ExpressionSlim, ExpressionSlim, ExpressionSlim, ExpressionSlim)
Creates a MethodCallExpressionSlim that represents a call to a static method that takes four arguments.
Declaration
MethodCallExpressionSlim Call(MethodInfoSlim method, ExpressionSlim arg0, ExpressionSlim arg1, ExpressionSlim arg2, ExpressionSlim arg3)
Parameters
Type | Name | Description |
---|---|---|
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
ExpressionSlim | arg0 | The ExpressionSlim that represents the first argument. |
ExpressionSlim | arg1 | The ExpressionSlim that represents the second argument. |
ExpressionSlim | arg2 | The ExpressionSlim that represents the third argument. |
ExpressionSlim | arg3 | The ExpressionSlim that represents the fourth argument. |
Returns
Type | Description |
---|---|
MethodCallExpressionSlim | A MethodCallExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Call and the System.Linq.Expressions.MethodCallExpressionSlim.ObjectSlim and Method properties set to the specified values. |
Call(MethodInfoSlim, ExpressionSlim, ExpressionSlim, ExpressionSlim, ExpressionSlim, ExpressionSlim)
Creates a MethodCallExpressionSlim that represents a call to a static method that takes five arguments.
Declaration
MethodCallExpressionSlim Call(MethodInfoSlim method, ExpressionSlim arg0, ExpressionSlim arg1, ExpressionSlim arg2, ExpressionSlim arg3, ExpressionSlim arg4)
Parameters
Type | Name | Description |
---|---|---|
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
ExpressionSlim | arg0 | The ExpressionSlim that represents the first argument. |
ExpressionSlim | arg1 | The ExpressionSlim that represents the second argument. |
ExpressionSlim | arg2 | The ExpressionSlim that represents the third argument. |
ExpressionSlim | arg3 | The ExpressionSlim that represents the fourth argument. |
ExpressionSlim | arg4 | The ExpressionSlim that represents the fifth argument. |
Returns
Type | Description |
---|---|
MethodCallExpressionSlim | A MethodCallExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Call and the System.Linq.Expressions.MethodCallExpressionSlim.ObjectSlim and Method properties set to the specified values. |
Call(MethodInfoSlim, ExpressionSlim[])
Creates a MethodCallExpressionSlim that represents a call to a static (langword_csharp_Shared in Visual Basic) method that has arguments.
Declaration
MethodCallExpressionSlim Call(MethodInfoSlim method, params ExpressionSlim[] arguments)
Parameters
Type | Name | Description |
---|---|---|
MethodInfoSlim | method | A MethodInfoSlim that represents a static (langword_csharp_Shared in Visual Basic) method to set the Method property equal to. |
ExpressionSlim[] | arguments | An array of ExpressionSlim objects to use to populate the Arguments collection. |
Returns
Type | Description |
---|---|
MethodCallExpressionSlim | A MethodCallExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Call and the Method and Arguments properties set to the specified values. |
Catch(ParameterExpressionSlim, ExpressionSlim)
Creates a CatchBlockSlim representing a catch statement with a reference to the caught System.Exception object for use in the handler body.
Declaration
CatchBlockSlim Catch(ParameterExpressionSlim variable, ExpressionSlim body)
Parameters
Type | Name | Description |
---|---|---|
ParameterExpressionSlim | variable | A ParameterExpressionSlim representing a reference to the System.Exception object caught by this handler. |
ExpressionSlim | body | The body of the catch statement. |
Returns
Type | Description |
---|---|
CatchBlockSlim | The created CatchBlockSlim. |
Catch(ParameterExpressionSlim, ExpressionSlim, ExpressionSlim)
Creates a CatchBlockSlim representing a catch statement with an System.Exception filter and a reference to the caught System.Exception object.
Declaration
CatchBlockSlim Catch(ParameterExpressionSlim variable, ExpressionSlim body, ExpressionSlim filter)
Parameters
Type | Name | Description |
---|---|---|
ParameterExpressionSlim | variable | A ParameterExpressionSlim representing a reference to the System.Exception object caught by this handler. |
ExpressionSlim | body | The body of the catch statement. |
ExpressionSlim | filter | The body of the System.Exception filter. |
Returns
Type | Description |
---|---|
CatchBlockSlim | The created CatchBlockSlim. |
Catch(TypeSlim, ExpressionSlim)
Creates a CatchBlockSlim representing a catch statement.
Declaration
CatchBlockSlim Catch(TypeSlim type, ExpressionSlim body)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The System.Linq.Expressions.ExpressionSlim.Type of System.Exception this CatchBlockSlim will handle. |
ExpressionSlim | body | The body of the catch statement. |
Returns
Type | Description |
---|---|
CatchBlockSlim | The created CatchBlockSlim. |
Catch(TypeSlim, ExpressionSlim, ExpressionSlim)
Creates a CatchBlockSlim representing a catch statement with an System.Exception filter but no reference to the caught System.Exception object.
Declaration
CatchBlockSlim Catch(TypeSlim type, ExpressionSlim body, ExpressionSlim filter)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The System.Linq.Expressions.ExpressionSlim.Type of System.Exception this CatchBlockSlim will handle. |
ExpressionSlim | body | The body of the catch statement. |
ExpressionSlim | filter | The body of the System.Exception filter. |
Returns
Type | Description |
---|---|
CatchBlockSlim | The created CatchBlockSlim. |
Coalesce(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a coalescing operation.
Declaration
BinaryExpressionSlim Coalesce(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Coalesce and the Left and Right properties set to the specified values. |
Coalesce(ExpressionSlim, ExpressionSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents a coalescing operation, given a conversion function.
Declaration
BinaryExpressionSlim Coalesce(ExpressionSlim left, ExpressionSlim right, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Coalesce and the Left, Right and Conversion properties set to the specified values. |
Condition(ExpressionSlim, ExpressionSlim, ExpressionSlim)
Creates a ConditionalExpressionSlim that represents a conditional statement.
Declaration
ConditionalExpressionSlim Condition(ExpressionSlim test, ExpressionSlim ifTrue, ExpressionSlim ifFalse)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | test | An ExpressionSlim to set the Test property equal to. |
ExpressionSlim | ifTrue | An ExpressionSlim to set the IfTrue property equal to. |
ExpressionSlim | ifFalse | An ExpressionSlim to set the IfFalse property equal to. |
Returns
Type | Description |
---|---|
ConditionalExpressionSlim | A ConditionalExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Conditional and the Test, IfTrue, and IfFalse properties set to the specified values. |
Condition(ExpressionSlim, ExpressionSlim, ExpressionSlim, TypeSlim)
Creates a ConditionalExpressionSlim that represents a conditional statement.
Declaration
ConditionalExpressionSlim Condition(ExpressionSlim test, ExpressionSlim ifTrue, ExpressionSlim ifFalse, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | test | An ExpressionSlim to set the Test property equal to. |
ExpressionSlim | ifTrue | An ExpressionSlim to set the IfTrue property equal to. |
ExpressionSlim | ifFalse | An ExpressionSlim to set the IfFalse property equal to. |
TypeSlim | type | A System.Linq.Expressions.ExpressionSlim.Type to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
ConditionalExpressionSlim | A ConditionalExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Conditional and the Test, IfTrue, and IfFalse properties set to the specified values. |
Constant(ObjectSlim)
Creates a ConstantExpressionSlim that has the Value property set to the specified value.
Declaration
ConstantExpressionSlim Constant(ObjectSlim value)
Parameters
Type | Name | Description |
---|---|---|
System.ObjectSlim | value | An System.ObjectSlim to set the Value property equal to. |
Returns
Type | Description |
---|---|
ConstantExpressionSlim | A ConstantExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Constant and the Value property set to the specified value. |
Constant(ObjectSlim, TypeSlim)
Creates a ConstantExpressionSlim that has the Value and System.Linq.Expressions.ExpressionSlim.Type properties set to the specified values.
Declaration
ConstantExpressionSlim Constant(ObjectSlim value, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
System.ObjectSlim | value | An System.ObjectSlim to set the Value property equal to. |
TypeSlim | type | A TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
ConstantExpressionSlim | A ConstantExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Constant and the Value and System.Linq.Expressions.ExpressionSlim.Type properties set to the specified values. |
Continue(LabelTargetSlim)
Creates a GotoExpressionSlim representing a continue statement.
Declaration
GotoExpressionSlim Continue(LabelTargetSlim target)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Continue, the Target property set to |
Continue(LabelTargetSlim, TypeSlim)
Creates a GotoExpressionSlim representing a continue statement with the specified type.
Declaration
GotoExpressionSlim Continue(LabelTargetSlim target, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
TypeSlim | type | An TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Continue, the Target property set to |
Convert(ExpressionSlim, TypeSlim)
Creates a UnaryExpressionSlim that represents a type conversion operation.
Declaration
UnaryExpressionSlim Convert(ExpressionSlim expression, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
TypeSlim | type | A TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Convert and the Operand and System.Linq.Expressions.ExpressionSlim.Type properties set to the specified values. |
Convert(ExpressionSlim, TypeSlim, MethodInfoSlim)
Creates a UnaryExpressionSlim that represents a conversion operation for which the implementing method is specified.
Declaration
UnaryExpressionSlim Convert(ExpressionSlim expression, TypeSlim type, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
TypeSlim | type | A TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Convert and the Operand, System.Linq.Expressions.ExpressionSlim.Type, and Method properties set to the specified values. |
ConvertChecked(ExpressionSlim, TypeSlim)
Creates a UnaryExpressionSlim that represents a conversion operation that throws an exception if the target type is overflowed.
Declaration
UnaryExpressionSlim ConvertChecked(ExpressionSlim expression, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
TypeSlim | type | A TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ConvertChecked and the Operand and System.Linq.Expressions.ExpressionSlim.Type properties set to the specified values. |
ConvertChecked(ExpressionSlim, TypeSlim, MethodInfoSlim)
Creates a UnaryExpressionSlim that represents a conversion operation that throws an exception if the target type is overflowed and for which the implementing method is specified.
Declaration
UnaryExpressionSlim ConvertChecked(ExpressionSlim expression, TypeSlim type, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
TypeSlim | type | A TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ConvertChecked and the Operand, System.Linq.Expressions.ExpressionSlim.Type, and Method properties set to the specified values. |
Decrement(ExpressionSlim)
Creates a UnaryExpressionSlim that represents the decrementing of the expression by 1.
Declaration
UnaryExpressionSlim Decrement(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to decrement. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the decremented expression. |
Decrement(ExpressionSlim, MethodInfoSlim)
Creates a UnaryExpressionSlim that represents the decrementing of the expression by 1.
Declaration
UnaryExpressionSlim Decrement(ExpressionSlim expression, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to decrement. |
MethodInfoSlim | method | A MethodInfoSlim that represents the implementing method. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the decremented expression. |
Default(TypeSlim)
Creates a DefaultExpressionSlim that has the System.Linq.Expressions.ExpressionSlim.Type property set to the specified type.
Declaration
DefaultExpressionSlim Default(TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | A TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
DefaultExpressionSlim | A DefaultExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Default and the System.Linq.Expressions.ExpressionSlim.Type property set to the specified type. |
Divide(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents an arithmetic division operation.
Declaration
BinaryExpressionSlim Divide(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Divide and the Left and Right properties set to the specified values. |
Divide(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents an arithmetic division operation. The implementing method can be specified.
Declaration
BinaryExpressionSlim Divide(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Divide and the Left, Right, and Method properties set to the specified values. |
DivideAssign(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a division assignment operation that does not have overflow checking.
Declaration
BinaryExpressionSlim DivideAssign(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.DivideAssign and the Left and Right properties set to the specified values. |
DivideAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a division assignment operation that does not have overflow checking.
Declaration
BinaryExpressionSlim DivideAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.DivideAssign and the Left, Right, and Method properties set to the specified values. |
DivideAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents a division assignment operation that does not have overflow checking.
Declaration
BinaryExpressionSlim DivideAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.DivideAssign and the Left, Right, Method, and Conversion properties set to the specified values. |
ElementInit(MethodInfoSlim, IEnumerable<ExpressionSlim>)
Creates an ElementInitSlim, given an System.Collections.Generic.IEnumerable<> as the second argument.
Declaration
ElementInitSlim ElementInit(MethodInfoSlim addMethod, IEnumerable<ExpressionSlim> arguments)
Parameters
Type | Name | Description |
---|---|---|
MethodInfoSlim | addMethod | A MethodInfoSlim to set the AddMethod property equal to. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | arguments | An System.Collections.Generic.IEnumerable<> that contains ExpressionSlim objects to set the Arguments property equal to. |
Returns
Type | Description |
---|---|
ElementInitSlim | An ElementInitSlim that has the AddMethod and Arguments properties set to the specified values. |
ElementInit(MethodInfoSlim, ExpressionSlim[])
Creates an ElementInitSlim, given an array of values as the second argument.
Declaration
ElementInitSlim ElementInit(MethodInfoSlim addMethod, params ExpressionSlim[] arguments)
Parameters
Type | Name | Description |
---|---|---|
MethodInfoSlim | addMethod | A MethodInfoSlim to set the AddMethod property equal to. |
ExpressionSlim[] | arguments | An array of ExpressionSlim objects to set the Arguments property equal to. |
Returns
Type | Description |
---|---|
ElementInitSlim | An ElementInitSlim that has the AddMethod and Arguments properties set to the specified values. |
Empty()
Creates an empty expression that has System.Void type.
Declaration
DefaultExpressionSlim Empty()
Returns
Type | Description |
---|---|
DefaultExpressionSlim | A DefaultExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Default and the System.Linq.Expressions.ExpressionSlim.Type property set to System.Void. |
Equal(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents an equality comparison.
Declaration
BinaryExpressionSlim Equal(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Equal and the Left and Right properties set to the specified values. |
Equal(ExpressionSlim, ExpressionSlim, Boolean, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents an equality comparison. The implementing method can be specified.
Declaration
BinaryExpressionSlim Equal(ExpressionSlim left, ExpressionSlim right, bool liftToNull, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
System.Boolean | liftToNull | true to set IsLiftedToNull to true; false to set IsLiftedToNull to false. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Equal and the Left, Right, IsLiftedToNull, and Method properties set to the specified values. |
ExclusiveOr(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise langword_csharp_XOR operation, using op_ExclusiveOr for user-defined types.
Declaration
BinaryExpressionSlim ExclusiveOr(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ExclusiveOr and the Left and Right properties set to the specified values. |
ExclusiveOr(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a bitwise langword_csharp_XOR operation, using op_ExclusiveOr for user-defined types. The implementing method can be specified.
Declaration
BinaryExpressionSlim ExclusiveOr(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ExclusiveOr and the Left, Right, and Method properties set to the specified values. |
ExclusiveOrAssign(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise XOR assignment operation, using op_ExclusiveOr for user-defined types.
Declaration
BinaryExpressionSlim ExclusiveOrAssign(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ExclusiveOrAssign and the Left and Right properties set to the specified values. |
ExclusiveOrAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a bitwise XOR assignment operation, using op_ExclusiveOr for user-defined types.
Declaration
BinaryExpressionSlim ExclusiveOrAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ExclusiveOrAssign and the Left, Right, and Method properties set to the specified values. |
ExclusiveOrAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise XOR assignment operation, using op_ExclusiveOr for user-defined types.
Declaration
BinaryExpressionSlim ExclusiveOrAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ExclusiveOrAssign and the Left, Right, Method, and Conversion properties set to the specified values. |
Field(ExpressionSlim, FieldInfoSlim)
Creates a MemberExpressionSlim that represents accessing a field.
Declaration
MemberExpressionSlim Field(ExpressionSlim expression, FieldInfoSlim field)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Expression property equal to. For static (langword_csharp_Shared in Visual Basic), |
FieldInfoSlim | field | The FieldInfoSlim to set the Member property equal to. |
Returns
Type | Description |
---|---|
MemberExpressionSlim | A MemberExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.MemberAccess and the Expression and Member properties set to the specified values. |
Goto(LabelTargetSlim)
Creates a GotoExpressionSlim representing a "go to" statement.
Declaration
GotoExpressionSlim Goto(LabelTargetSlim target)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Goto, the Target property set to the specified value, and a null value to be passed to the target label upon jumping. |
Goto(LabelTargetSlim, ExpressionSlim)
Creates a GotoExpressionSlim representing a "go to" statement. The value passed to the label upon jumping can be specified.
Declaration
GotoExpressionSlim Goto(LabelTargetSlim target, ExpressionSlim value)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
ExpressionSlim | value | The value that will be passed to the associated label upon jumping. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Goto, the Target property set to |
Goto(LabelTargetSlim, ExpressionSlim, TypeSlim)
Creates a GotoExpressionSlim representing a "go to" statement with the specified type. The value passed to the label upon jumping can be specified.
Declaration
GotoExpressionSlim Goto(LabelTargetSlim target, ExpressionSlim value, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
ExpressionSlim | value | The value that will be passed to the associated label upon jumping. |
TypeSlim | type | An TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Goto, the Target property set to |
Goto(LabelTargetSlim, TypeSlim)
Creates a GotoExpressionSlim representing a "go to" statement with the specified type.
Declaration
GotoExpressionSlim Goto(LabelTargetSlim target, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
TypeSlim | type | An TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Goto, the Target property set to the specified value, the System.Linq.Expressions.ExpressionSlim.Type property set to |
GreaterThan(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a "greater than" numeric comparison.
Declaration
BinaryExpressionSlim GreaterThan(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.GreaterThan and the Left and Right properties set to the specified values. |
GreaterThan(ExpressionSlim, ExpressionSlim, Boolean, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a "greater than" numeric comparison. The implementing method can be specified.
Declaration
BinaryExpressionSlim GreaterThan(ExpressionSlim left, ExpressionSlim right, bool liftToNull, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
System.Boolean | liftToNull | true to set IsLiftedToNull to true; false to set IsLiftedToNull to false. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.GreaterThan and the Left, Right, IsLiftedToNull, and Method properties set to the specified values. |
GreaterThanOrEqual(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a "greater than or equal" numeric comparison.
Declaration
BinaryExpressionSlim GreaterThanOrEqual(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.GreaterThanOrEqual and the Left and Right properties set to the specified values. |
GreaterThanOrEqual(ExpressionSlim, ExpressionSlim, Boolean, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a "greater than or equal" numeric comparison.
Declaration
BinaryExpressionSlim GreaterThanOrEqual(ExpressionSlim left, ExpressionSlim right, bool liftToNull, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
System.Boolean | liftToNull | true to set IsLiftedToNull to true; false to set IsLiftedToNull to false. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.GreaterThanOrEqual and the Left, Right, IsLiftedToNull, and Method properties set to the specified values. |
IfThen(ExpressionSlim, ExpressionSlim)
Creates a ConditionalExpressionSlim that represents a conditional block with an langword_csharp_if statement.
Declaration
ConditionalExpressionSlim IfThen(ExpressionSlim test, ExpressionSlim ifTrue)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | test | An ExpressionSlim to set the Test property equal to. |
ExpressionSlim | ifTrue | An ExpressionSlim to set the IfTrue property equal to. |
Returns
Type | Description |
---|---|
ConditionalExpressionSlim | A ConditionalExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Conditional and the Test, IfTrue, properties set to the specified values. The IfFalse property is set to default expression and the type of the resulting ConditionalExpressionSlim returned by this method is System.Void. |
IfThenElse(ExpressionSlim, ExpressionSlim, ExpressionSlim)
Creates a ConditionalExpressionSlim that represents a conditional block with langword_csharp_if and langword_csharp_else statements.
Declaration
ConditionalExpressionSlim IfThenElse(ExpressionSlim test, ExpressionSlim ifTrue, ExpressionSlim ifFalse)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | test | An ExpressionSlim to set the Test property equal to. |
ExpressionSlim | ifTrue | An ExpressionSlim to set the IfTrue property equal to. |
ExpressionSlim | ifFalse | An ExpressionSlim to set the IfFalse property equal to. |
Returns
Type | Description |
---|---|
ConditionalExpressionSlim | A ConditionalExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Conditional and the Test, IfTrue, and IfFalse properties set to the specified values. The type of the resulting ConditionalExpressionSlim returned by this method is System.Void. |
Increment(ExpressionSlim)
Creates a UnaryExpressionSlim that represents the incrementing of the expression value by 1.
Declaration
UnaryExpressionSlim Increment(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to increment. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the incremented expression. |
Increment(ExpressionSlim, MethodInfoSlim)
Creates a UnaryExpressionSlim that represents the incrementing of the expression by 1.
Declaration
UnaryExpressionSlim Increment(ExpressionSlim expression, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to increment. |
MethodInfoSlim | method | A MethodInfoSlim that represents the implementing method. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the incremented expression. |
Invoke(ExpressionSlim, IEnumerable<ExpressionSlim>)
Creates an InvocationExpressionSlim that applies a delegate or lambda expression to a list of argument expressions.
Declaration
InvocationExpressionSlim Invoke(ExpressionSlim expression, IEnumerable<ExpressionSlim> arguments)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim that represents the delegate or lambda expression to be applied to. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | arguments | An System.Collections.Generic.IEnumerable<> that contains ExpressionSlim objects that represent the arguments that the delegate or lambda expression is applied to. |
Returns
Type | Description |
---|---|
InvocationExpressionSlim | An InvocationExpressionSlim that applies the specified delegate or lambda expression to the provided arguments. |
Invoke(ExpressionSlim, ExpressionSlim[])
Creates an InvocationExpressionSlim that applies a delegate or lambda expression to a list of argument expressions.
Declaration
InvocationExpressionSlim Invoke(ExpressionSlim expression, params ExpressionSlim[] arguments)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim that represents the delegate or lambda expression to be applied. |
ExpressionSlim[] | arguments | An array of ExpressionSlim objects that represent the arguments that the delegate or lambda expression is applied to. |
Returns
Type | Description |
---|---|
InvocationExpressionSlim | An InvocationExpressionSlim that applies the specified delegate or lambda expression to the provided arguments. |
IsFalse(ExpressionSlim)
Returns whether the expression evaluates to false.
Declaration
UnaryExpressionSlim IsFalse(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to evaluate. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | An instance of UnaryExpressionSlim. |
IsFalse(ExpressionSlim, MethodInfoSlim)
Returns whether the expression evaluates to false.
Declaration
UnaryExpressionSlim IsFalse(ExpressionSlim expression, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to evaluate. |
MethodInfoSlim | method | A MethodInfoSlim that represents the implementing method. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | An instance of UnaryExpressionSlim. |
IsTrue(ExpressionSlim)
Returns whether the expression evaluates to true.
Declaration
UnaryExpressionSlim IsTrue(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to evaluate. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | An instance of UnaryExpressionSlim. |
IsTrue(ExpressionSlim, MethodInfoSlim)
Returns whether the expression evaluates to true.
Declaration
UnaryExpressionSlim IsTrue(ExpressionSlim expression, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to evaluate. |
MethodInfoSlim | method | A MethodInfoSlim that represents the implementing method. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | An instance of UnaryExpressionSlim. |
Label()
Creates a LabelTargetSlim representing a label with void type and no name.
Declaration
LabelTargetSlim Label()
Returns
Type | Description |
---|---|
LabelTargetSlim | The new LabelTargetSlim. |
Label(LabelTargetSlim)
Creates a LabelExpressionSlim representing a label without a default value.
Declaration
LabelExpressionSlim Label(LabelTargetSlim target)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim which this LabelExpressionSlim will be associated with. |
Returns
Type | Description |
---|---|
LabelExpressionSlim | A LabelExpressionSlim without a default value. |
Label(LabelTargetSlim, ExpressionSlim)
Creates a LabelExpressionSlim representing a label with the given default value.
Declaration
LabelExpressionSlim Label(LabelTargetSlim target, ExpressionSlim defaultValue)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim which this LabelExpressionSlim will be associated with. |
ExpressionSlim | defaultValue | The value of this LabelExpressionSlim when the label is reached through regular control flow. |
Returns
Type | Description |
---|---|
LabelExpressionSlim | A LabelExpressionSlim with the given default value. |
Label(TypeSlim)
Creates a LabelTargetSlim representing a label with the given type.
Declaration
LabelTargetSlim Label(TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The type of value that is passed when jumping to the label. |
Returns
Type | Description |
---|---|
LabelTargetSlim | The new LabelTargetSlim. |
Label(TypeSlim, String)
Creates a LabelTargetSlim representing a label with the given type and name.
Declaration
LabelTargetSlim Label(TypeSlim type, string name)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The type of value that is passed when jumping to the label. |
System.String | name | The name of the label. |
Returns
Type | Description |
---|---|
LabelTargetSlim | The new LabelTargetSlim. |
Label(String)
Creates a LabelTargetSlim representing a label with void type and the given name.
Declaration
LabelTargetSlim Label(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the label. |
Returns
Type | Description |
---|---|
LabelTargetSlim | The new LabelTargetSlim. |
Lambda(ExpressionSlim, IEnumerable<ParameterExpressionSlim>)
Creates a LambdaExpression by first constructing a delegate type.
Declaration
LambdaExpressionSlim Lambda(ExpressionSlim body, IEnumerable<ParameterExpressionSlim> parameters)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | body | An ExpressionSlim to set the Body property equal to. |
System.Collections.Generic.IEnumerable<ParameterExpressionSlim> | parameters | An System.Collections.Generic.IEnumerable<> that contains ParameterExpressionSlim objects to use to populate the Parameters collection. |
Returns
Type | Description |
---|---|
LambdaExpressionSlim | A LambdaExpressionSlim that has the NodeType property equal to Lambda and the Body and Parameters properties set to the specified values. |
Lambda(ExpressionSlim, ParameterExpressionSlim[])
Creates a LambdaExpressionSlim by first constructing a delegate type.
Declaration
LambdaExpressionSlim Lambda(ExpressionSlim body, params ParameterExpressionSlim[] parameters)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | body | An ExpressionSlim to set the Body property equal to. |
ParameterExpressionSlim[] | parameters | An array of ParameterExpressionSlim objects to use to populate the Parameters collection. |
Returns
Type | Description |
---|---|
LambdaExpressionSlim | A LambdaExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Lambda and the Body and Parameters properties set to the specified values. |
Lambda(TypeSlim, ExpressionSlim, IEnumerable<ParameterExpressionSlim>)
Creates a LambdaExpressionSlim by first constructing a delegate type. It can be used when the delegate type is not known at compile time.
Declaration
LambdaExpressionSlim Lambda(TypeSlim delegateType, ExpressionSlim body, IEnumerable<ParameterExpressionSlim> parameters)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | delegateType | A TypeSlim that represents a delegate signature for the lambda. |
ExpressionSlim | body | An ExpressionSlim to set the Body property equal to. |
System.Collections.Generic.IEnumerable<ParameterExpressionSlim> | parameters | An System.Collections.Generic.IEnumerable<> that contains ParameterExpressionSlim objects to use to populate the Parameters collection. |
Returns
Type | Description |
---|---|
LambdaExpressionSlim | An object that represents a lambda expression which has the NodeType property equal to System.Linq.Expressions.ExpressionType.Lambda and the Body and Parameters properties set to the specified values. |
Lambda(TypeSlim, ExpressionSlim, ParameterExpressionSlim[])
Creates a LambdaExpressionSlim by first constructing a delegate type. It can be used when the delegate type is not known at compile time.
Declaration
LambdaExpressionSlim Lambda(TypeSlim delegateType, ExpressionSlim body, params ParameterExpressionSlim[] parameters)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | delegateType | A TypeSlim that represents a delegate signature for the lambda. |
ExpressionSlim | body | An ExpressionSlim to set the Body property equal to. |
ParameterExpressionSlim[] | parameters | An array of ParameterExpressionSlim objects to use to populate the Parameters collection. |
Returns
Type | Description |
---|---|
LambdaExpressionSlim | An object that represents a lambda expression which has the NodeType property equal to System.Linq.Expressions.ExpressionType.Lambda and the Body and Parameters properties set to the specified values. |
LeftShift(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise left-shift operation.
Declaration
BinaryExpressionSlim LeftShift(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.LeftShift and the Left and Right properties set to the specified values. |
LeftShift(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a bitwise left-shift operation.
Declaration
BinaryExpressionSlim LeftShift(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.LeftShift and the Left, Right, and Method properties set to the specified values. |
LeftShiftAssign(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise left-shift assignment operation.
Declaration
BinaryExpressionSlim LeftShiftAssign(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.LeftShiftAssign and the Left and Right properties set to the specified values. |
LeftShiftAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a bitwise left-shift assignment operation.
Declaration
BinaryExpressionSlim LeftShiftAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.LeftShiftAssign and the Left, Right, and Method properties set to the specified values. |
LeftShiftAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise left-shift assignment operation.
Declaration
BinaryExpressionSlim LeftShiftAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.LeftShiftAssign and the Left, Right, Method, and Conversion properties set to the specified values. |
LessThan(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a "less than" numeric comparison.
Declaration
BinaryExpressionSlim LessThan(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.LessThan and the Left and Right properties set to the specified values. |
LessThan(ExpressionSlim, ExpressionSlim, Boolean, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a "less than" numeric comparison.
Declaration
BinaryExpressionSlim LessThan(ExpressionSlim left, ExpressionSlim right, bool liftToNull, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
System.Boolean | liftToNull | true to set IsLiftedToNull to true; false to set IsLiftedToNull to false. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.LessThan and the Left, Right, IsLiftedToNull, and Method properties set to the specified values. |
LessThanOrEqual(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a " less than or equal" numeric comparison.
Declaration
BinaryExpressionSlim LessThanOrEqual(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.LessThanOrEqual and the Left and Right properties set to the specified values. |
LessThanOrEqual(ExpressionSlim, ExpressionSlim, Boolean, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a "less than or equal" numeric comparison.
Declaration
BinaryExpressionSlim LessThanOrEqual(ExpressionSlim left, ExpressionSlim right, bool liftToNull, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
System.Boolean | liftToNull | true to set IsLiftedToNull to true; false to set IsLiftedToNull to false. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.LessThanOrEqual and the Left, Right, IsLiftedToNull, and Method properties set to the specified values. |
ListBind(MemberInfoSlim, IEnumerable<ElementInitSlim>)
Creates a MemberListBindingSlim where the member is a field or property.
Declaration
MemberListBindingSlim ListBind(MemberInfoSlim member, IEnumerable<ElementInitSlim> initializers)
Parameters
Type | Name | Description |
---|---|---|
MemberInfoSlim | member | A MemberInfoSlim that represents a field or property to set the Member property equal to. |
System.Collections.Generic.IEnumerable<ElementInitSlim> | initializers | An System.Collections.Generic.IEnumerable<> that contains ElementInitSlim objects to use to populate the Initializers collection. |
Returns
Type | Description |
---|---|
MemberListBindingSlim | A MemberListBindingSlim that has the BindingType property equal to System.Linq.Expressions.MemberBindingType.ListBinding and the Member and Initializers properties set to the specified values. |
ListBind(MemberInfoSlim, ElementInitSlim[])
Creates a MemberListBindingSlim where the member is a field or property.
Declaration
MemberListBindingSlim ListBind(MemberInfoSlim member, params ElementInitSlim[] initializers)
Parameters
Type | Name | Description |
---|---|---|
MemberInfoSlim | member | A MemberInfoSlim that represents a field or property to set the Member property equal to. |
ElementInitSlim[] | initializers | An array of ElementInitSlim objects to use to populate the Initializers collection. |
Returns
Type | Description |
---|---|
MemberListBindingSlim | A MemberListBindingSlim that has the BindingType property equal to System.Linq.Expressions.MemberBindingType.ListBinding and the Member and Initializers properties set to the specified values. |
ListInit(NewExpressionSlim, IEnumerable<ElementInitSlim>)
Creates a ListInitExpressionSlim that uses specified ElementInitSlim objects to initialize a collection.
Declaration
ListInitExpressionSlim ListInit(NewExpressionSlim newExpression, IEnumerable<ElementInitSlim> initializers)
Parameters
Type | Name | Description |
---|---|---|
NewExpressionSlim | newExpression | A NewExpressionSlim to set the NewExpression property equal to. |
System.Collections.Generic.IEnumerable<ElementInitSlim> | initializers | An System.Collections.Generic.IEnumerable<> that contains ElementInitSlim objects to use to populate the Initializers collection. |
Returns
Type | Description |
---|---|
ListInitExpressionSlim | A ListInitExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ListInit and the NewExpression and Initializers properties set to the specified values. |
ListInit(NewExpressionSlim, ElementInitSlim[])
Creates a ListInitExpressionSlim that uses specified ElementInitSlim objects to initialize a collection.
Declaration
ListInitExpressionSlim ListInit(NewExpressionSlim newExpression, params ElementInitSlim[] initializers)
Parameters
Type | Name | Description |
---|---|---|
NewExpressionSlim | newExpression | A NewExpressionSlim to set the NewExpression property equal to. |
ElementInitSlim[] | initializers | An array of ElementInitSlim objects to use to populate the Initializers collection. |
Returns
Type | Description |
---|---|
ListInitExpressionSlim | A ListInitExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ListInit and the NewExpression and Initializers properties set to the specified values. |
ListInit(NewExpressionSlim, MethodInfoSlim, IEnumerable<ExpressionSlim>)
Creates a ListInitExpressionSlim that uses a specified method to add elements to a collection.
Declaration
ListInitExpressionSlim ListInit(NewExpressionSlim newExpression, MethodInfoSlim addMethod, IEnumerable<ExpressionSlim> initializers)
Parameters
Type | Name | Description |
---|---|---|
NewExpressionSlim | newExpression | A NewExpressionSlim to set the NewExpression property equal to. |
MethodInfoSlim | addMethod | A MethodInfoSlim that represents an instance method named "Add" (case insensitive), that adds an element to a collection. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | initializers | An System.Collections.Generic.IEnumerable<> that contains ExpressionSlim objects to use to populate the Initializers collection. |
Returns
Type | Description |
---|---|
ListInitExpressionSlim | A ListInitExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ListInit and the NewExpression property set to the specified value. |
ListInit(NewExpressionSlim, MethodInfoSlim, ExpressionSlim[])
Creates a ListInitExpressionSlim that uses a specified method to add elements to a collection.
Declaration
ListInitExpressionSlim ListInit(NewExpressionSlim newExpression, MethodInfoSlim addMethod, params ExpressionSlim[] initializers)
Parameters
Type | Name | Description |
---|---|---|
NewExpressionSlim | newExpression | A NewExpressionSlim to set the NewExpression property equal to. |
MethodInfoSlim | addMethod | A MethodInfoSlim that represents an instance method that takes one argument, that adds an element to a collection. |
ExpressionSlim[] | initializers | An array of ExpressionSlim objects to use to populate the Initializers collection. |
Returns
Type | Description |
---|---|
ListInitExpressionSlim | A ListInitExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ListInit and the NewExpression property set to the specified value. |
Loop(ExpressionSlim)
Creates a LoopExpressionSlim with the given body.
Declaration
LoopExpressionSlim Loop(ExpressionSlim body)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | body | The body of the loop. |
Returns
Type | Description |
---|---|
LoopExpressionSlim | The created LoopExpressionSlim. |
Loop(ExpressionSlim, LabelTargetSlim)
Creates a LoopExpressionSlim with the given body and break target.
Declaration
LoopExpressionSlim Loop(ExpressionSlim body, LabelTargetSlim break)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | body | The body of the loop. |
LabelTargetSlim | break | The break target used by the loop body. |
Returns
Type | Description |
---|---|
LoopExpressionSlim | The created LoopExpressionSlim. |
Loop(ExpressionSlim, LabelTargetSlim, LabelTargetSlim)
Creates a LoopExpressionSlim with the given body.
Declaration
LoopExpressionSlim Loop(ExpressionSlim body, LabelTargetSlim break, LabelTargetSlim continue)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | body | The body of the loop. |
LabelTargetSlim | break | The break target used by the loop body. |
LabelTargetSlim | continue | The continue target used by the loop body. |
Returns
Type | Description |
---|---|
LoopExpressionSlim | The created LoopExpressionSlim. |
MakeBinary(ExpressionType, ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim, given the left and right operands, by calling an appropriate factory method.
Declaration
BinaryExpressionSlim MakeBinary(ExpressionType binaryType, ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.ExpressionType | binaryType | The System.Linq.Expressions.ExpressionType that specifies the type of binary operation. |
ExpressionSlim | left | An ExpressionSlim that represents the left operand. |
ExpressionSlim | right | An ExpressionSlim that represents the right operand. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | The BinaryExpressionSlim that results from calling the appropriate factory method. |
MakeBinary(ExpressionType, ExpressionSlim, ExpressionSlim, Boolean, MethodInfoSlim)
Creates a BinaryExpressionSlim, given the left operand, right operand and implementing method, by calling the appropriate factory method.
Declaration
BinaryExpressionSlim MakeBinary(ExpressionType binaryType, ExpressionSlim left, ExpressionSlim right, bool liftToNull, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.ExpressionType | binaryType | The System.Linq.Expressions.ExpressionType that specifies the type of binary operation. |
ExpressionSlim | left | An ExpressionSlim that represents the left operand. |
ExpressionSlim | right | An ExpressionSlim that represents the right operand. |
System.Boolean | liftToNull | true to set IsLiftedToNull to true; false to set IsLiftedToNull to false. |
MethodInfoSlim | method | A MethodInfoSlim that specifies the implementing method. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | The BinaryExpressionSlim that results from calling the appropriate factory method. |
MakeBinary(ExpressionType, ExpressionSlim, ExpressionSlim, Boolean, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim, given the left operand, right operand, implementing method and type conversion function, by calling the appropriate factory method.
Declaration
BinaryExpressionSlim MakeBinary(ExpressionType binaryType, ExpressionSlim left, ExpressionSlim right, bool liftToNull, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.ExpressionType | binaryType | The System.Linq.Expressions.ExpressionType that specifies the type of binary operation. |
ExpressionSlim | left | An ExpressionSlim that represents the left operand. |
ExpressionSlim | right | An ExpressionSlim that represents the right operand. |
System.Boolean | liftToNull | true to set IsLiftedToNull to true; false to set IsLiftedToNull to false. |
MethodInfoSlim | method | A MethodInfoSlim that specifies the implementing method. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim that represents a type conversion function. This parameter is used only if |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | The BinaryExpressionSlim that results from calling the appropriate factory method. |
MakeCatchBlock(TypeSlim, ParameterExpressionSlim, ExpressionSlim, ExpressionSlim)
Creates a CatchBlockSlim representing a catch statement with the specified elements.
Declaration
CatchBlockSlim MakeCatchBlock(TypeSlim type, ParameterExpressionSlim variable, ExpressionSlim body, ExpressionSlim filter)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The System.Linq.Expressions.ExpressionSlim.Type of System.Exception this CatchBlockSlim will handle. |
ParameterExpressionSlim | variable | A ParameterExpressionSlim representing a reference to the System.Exception object caught by this handler. |
ExpressionSlim | body | The body of the catch statement. |
ExpressionSlim | filter | The body of the System.Exception filter. |
Returns
Type | Description |
---|---|
CatchBlockSlim | The created CatchBlockSlim. |
MakeGoto(GotoExpressionKind, LabelTargetSlim, ExpressionSlim, TypeSlim)
Creates a GotoExpressionSlim representing a jump of the specified System.Linq.Expressions.GotoExpressionKind. The value passed to the label upon jumping can also be specified.
Declaration
GotoExpressionSlim MakeGoto(GotoExpressionKind kind, LabelTargetSlim target, ExpressionSlim value, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.GotoExpressionKind | kind | The System.Linq.Expressions.GotoExpressionKind of the GotoExpressionSlim. |
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
ExpressionSlim | value | The value that will be passed to the associated label upon jumping. |
TypeSlim | type | An TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to |
MakeIndex(ExpressionSlim, PropertyInfoSlim, IEnumerable<ExpressionSlim>)
Creates an IndexExpressionSlim that represents accessing an indexed property in an object.
Declaration
IndexExpressionSlim MakeIndex(ExpressionSlim instance, PropertyInfoSlim indexer, IEnumerable<ExpressionSlim> arguments)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | instance | The object to which the property belongs. It should be null if the property is static (langword_csharp_shared in Visual Basic). |
PropertyInfoSlim | indexer | An ExpressionSlim representing the property to index. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | arguments | An IEnumerable<Expression> (IEnumerable (Of Expression) in Visual Basic) that contains the arguments that will be used to index the property. |
Returns
Type | Description |
---|---|
IndexExpressionSlim | The created IndexExpressionSlim. |
MakeMemberAccess(ExpressionSlim, MemberInfoSlim)
Creates a MemberExpressionSlim that represents accessing either a field or a property.
Declaration
MemberExpressionSlim MakeMemberAccess(ExpressionSlim expression, MemberInfoSlim member)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim that represents the object that the member belongs to. This can be null for static members. |
MemberInfoSlim | member | The MemberInfoSlim that describes the field or property to be accessed. |
Returns
Type | Description |
---|---|
MemberExpressionSlim | The MemberExpressionSlim that results from calling the appropriate factory method. |
MakeTry(TypeSlim, ExpressionSlim, ExpressionSlim, ExpressionSlim, IEnumerable<CatchBlockSlim>)
Creates a TryExpressionSlim representing a try block with the specified elements.
Declaration
TryExpressionSlim MakeTry(TypeSlim type, ExpressionSlim body, ExpressionSlim finally, ExpressionSlim fault, IEnumerable<CatchBlockSlim> handlers)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The result type of the try expression. If null, bodh and all handlers must have identical type. |
ExpressionSlim | body | The body of the try block. |
ExpressionSlim | finally | The body of the finally block. Pass null if the try block has no finally block associated with it. |
ExpressionSlim | fault | The body of the fault block. Pass null if the try block has no fault block associated with it. |
System.Collections.Generic.IEnumerable<CatchBlockSlim> | handlers | A collection of CatchBlockSlims representing the catch statements to be associated with the try block. |
Returns
Type | Description |
---|---|
TryExpressionSlim | The created TryExpressionSlim. |
MakeUnary(ExpressionType, ExpressionSlim, TypeSlim)
Creates a UnaryExpressionSlim, given an operand, by calling the appropriate factory method.
Declaration
UnaryExpressionSlim MakeUnary(ExpressionType unaryType, ExpressionSlim operand, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.ExpressionType | unaryType | The System.Linq.Expressions.ExpressionType that specifies the type of unary operation. |
ExpressionSlim | operand | An ExpressionSlim that represents the operand. |
TypeSlim | type | The TypeSlim that specifies the type to be converted to (pass null if not applicable). |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | The UnaryExpressionSlim that results from calling the appropriate factory method. |
MakeUnary(ExpressionType, ExpressionSlim, TypeSlim, MethodInfoSlim)
Creates a UnaryExpressionSlim, given an operand and implementing method, by calling the appropriate factory method.
Declaration
UnaryExpressionSlim MakeUnary(ExpressionType unaryType, ExpressionSlim operand, TypeSlim type, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.ExpressionType | unaryType | The System.Linq.Expressions.ExpressionType that specifies the type of unary operation. |
ExpressionSlim | operand | An ExpressionSlim that represents the operand. |
TypeSlim | type | The TypeSlim that specifies the type to be converted to (pass null if not applicable). |
MethodInfoSlim | method | The MethodInfoSlim that represents the implementing method. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | The UnaryExpressionSlim that results from calling the appropriate factory method. |
MemberBind(MemberInfoSlim, IEnumerable<MemberBindingSlim>)
Creates a MemberMemberBindingSlim that represents the recursive initialization of members of a field or property.
Declaration
MemberMemberBindingSlim MemberBind(MemberInfoSlim member, IEnumerable<MemberBindingSlim> bindings)
Parameters
Type | Name | Description |
---|---|---|
MemberInfoSlim | member | The MemberInfoSlim to set the Member property equal to. |
System.Collections.Generic.IEnumerable<MemberBindingSlim> | bindings | An System.Collections.Generic.IEnumerable<> that contains MemberBindingSlim objects to use to populate the Bindings collection. |
Returns
Type | Description |
---|---|
MemberMemberBindingSlim | A MemberMemberBindingSlim that has the BindingType property equal to System.Linq.Expressions.MemberBindingType.MemberBindingSlim and the Member and Bindings properties set to the specified values. |
MemberBind(MemberInfoSlim, MemberBindingSlim[])
Creates a MemberMemberBindingSlim that represents the recursive initialization of members of a field or property.
Declaration
MemberMemberBindingSlim MemberBind(MemberInfoSlim member, params MemberBindingSlim[] bindings)
Parameters
Type | Name | Description |
---|---|---|
MemberInfoSlim | member | The MemberInfoSlim to set the Member property equal to. |
MemberBindingSlim[] | bindings | An array of MemberBindingSlim objects to use to populate the Bindings collection. |
Returns
Type | Description |
---|---|
MemberMemberBindingSlim | A MemberMemberBindingSlim that has the BindingType property equal to System.Linq.Expressions.MemberBindingType.MemberBindingSlim and the Member and Bindings properties set to the specified values. |
MemberInit(NewExpressionSlim, IEnumerable<MemberBindingSlim>)
Represents an expression that creates a new object and initializes a property of the object.
Declaration
MemberInitExpressionSlim MemberInit(NewExpressionSlim newExpression, IEnumerable<MemberBindingSlim> bindings)
Parameters
Type | Name | Description |
---|---|---|
NewExpressionSlim | newExpression | A NewExpressionSlim to set the NewExpression property equal to. |
System.Collections.Generic.IEnumerable<MemberBindingSlim> | bindings | An System.Collections.Generic.IEnumerable<> that contains MemberBindingSlim objects to use to populate the Bindings collection. |
Returns
Type | Description |
---|---|
MemberInitExpressionSlim | A MemberInitExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.MemberInit and the NewExpression and Bindings properties set to the specified values. |
MemberInit(NewExpressionSlim, MemberBindingSlim[])
Creates a MemberInitExpressionSlim.
Declaration
MemberInitExpressionSlim MemberInit(NewExpressionSlim newExpression, params MemberBindingSlim[] bindings)
Parameters
Type | Name | Description |
---|---|---|
NewExpressionSlim | newExpression | A NewExpressionSlim to set the NewExpression property equal to. |
MemberBindingSlim[] | bindings | An array of MemberBindingSlim objects to use to populate the Bindings collection. |
Returns
Type | Description |
---|---|
MemberInitExpressionSlim | A MemberInitExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.MemberInit and the NewExpression and Bindings properties set to the specified values. |
Modulo(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents an arithmetic remainder operation.
Declaration
BinaryExpressionSlim Modulo(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Modulo and the Left and Right properties set to the specified values. |
Modulo(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents an arithmetic remainder operation.
Declaration
BinaryExpressionSlim Modulo(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Modulo and the Left, Right, and Method properties set to the specified values. |
ModuloAssign(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a remainder assignment operation.
Declaration
BinaryExpressionSlim ModuloAssign(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ModuloAssign and the Left and Right properties set to the specified values. |
ModuloAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a remainder assignment operation.
Declaration
BinaryExpressionSlim ModuloAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ModuloAssign and the Left, Right, and Method properties set to the specified values. |
ModuloAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents a remainder assignment operation.
Declaration
BinaryExpressionSlim ModuloAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.ModuloAssign and the Left, Right, Method, and Conversion properties set to the specified values. |
Multiply(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents an arithmetic multiplication operation that does not have overflow checking.
Declaration
BinaryExpressionSlim Multiply(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Multiply and the Left and Right properties set to the specified values. |
Multiply(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents an arithmetic multiplication operation that does not have overflow checking.
Declaration
BinaryExpressionSlim Multiply(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Multiply and the Left, Right, and Method properties set to the specified values. |
MultiplyAssign(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a multiplication assignment operation that does not have overflow checking.
Declaration
BinaryExpressionSlim MultiplyAssign(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.MultiplyAssign and the Left and Right properties set to the specified values. |
MultiplyAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a multiplication assignment operation that does not have overflow checking.
Declaration
BinaryExpressionSlim MultiplyAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.MultiplyAssign and the Left, Right, and Method properties set to the specified values. |
MultiplyAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents a multiplication assignment operation that does not have overflow checking.
Declaration
BinaryExpressionSlim MultiplyAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.MultiplyAssign and the Left, Right, Method, and Conversion properties set to the specified values. |
MultiplyAssignChecked(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a multiplication assignment operation that has overflow checking.
Declaration
BinaryExpressionSlim MultiplyAssignChecked(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.MultiplyAssignChecked and the Left and Right properties set to the specified values. |
MultiplyAssignChecked(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a multiplication assignment operation that has overflow checking.
Declaration
BinaryExpressionSlim MultiplyAssignChecked(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.MultiplyAssignChecked and the Left, Right, and Method properties set to the specified values. |
MultiplyAssignChecked(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents a multiplication assignment operation that has overflow checking.
Declaration
BinaryExpressionSlim MultiplyAssignChecked(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.MultiplyAssignChecked and the Left, Right, Method, and Conversion properties set to the specified values. |
MultiplyChecked(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents an arithmetic multiplication operation that has overflow checking.
Declaration
BinaryExpressionSlim MultiplyChecked(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.MultiplyChecked and the Left and Right properties set to the specified values. |
MultiplyChecked(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents an arithmetic multiplication operation that has overflow checking.
Declaration
BinaryExpressionSlim MultiplyChecked(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.MultiplyChecked and the Left, Right, and Method properties set to the specified values. |
Negate(ExpressionSlim)
Creates a UnaryExpressionSlim that represents an arithmetic negation operation.
Declaration
UnaryExpressionSlim Negate(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Negate and the Operand property set to the specified value. |
Negate(ExpressionSlim, MethodInfoSlim)
Creates a UnaryExpressionSlim that represents an arithmetic negation operation.
Declaration
UnaryExpressionSlim Negate(ExpressionSlim expression, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Negate and the Operand and Method properties set to the specified values. |
NegateChecked(ExpressionSlim)
Creates a UnaryExpressionSlim that represents an arithmetic negation operation that has overflow checking.
Declaration
UnaryExpressionSlim NegateChecked(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.NegateChecked and the Operand property set to the specified value. |
NegateChecked(ExpressionSlim, MethodInfoSlim)
Creates a UnaryExpressionSlim that represents an arithmetic negation operation that has overflow checking. The implementing method can be specified.
Declaration
UnaryExpressionSlim NegateChecked(ExpressionSlim expression, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.NegateChecked and the Operand and Method properties set to the specified values. |
New(ConstructorInfoSlim)
Creates a NewExpressionSlim that represents calling the specified constructor that takes no arguments.
Declaration
NewExpressionSlim New(ConstructorInfoSlim constructor)
Parameters
Type | Name | Description |
---|---|---|
ConstructorInfoSlim | constructor | The ConstructorInfoSlim to set the Constructor property equal to. |
Returns
Type | Description |
---|---|
NewExpressionSlim | A NewExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.New and the Constructor property set to the specified value. |
New(ConstructorInfoSlim, IEnumerable<ExpressionSlim>)
Creates a NewExpressionSlim that represents calling the specified constructor with the specified arguments.
Declaration
NewExpressionSlim New(ConstructorInfoSlim constructor, IEnumerable<ExpressionSlim> arguments)
Parameters
Type | Name | Description |
---|---|---|
ConstructorInfoSlim | constructor | The ConstructorInfoSlim to set the Constructor property equal to. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | arguments | An System.Collections.Generic.IEnumerable<> that contains ExpressionSlim objects to use to populate the Arguments collection. |
Returns
Type | Description |
---|---|
NewExpressionSlim | A NewExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.New and the Constructor and Arguments properties set to the specified values. |
New(ConstructorInfoSlim, IEnumerable<ExpressionSlim>, IEnumerable<MemberInfoSlim>)
Creates a NewExpressionSlim that represents calling the specified constructor with the specified arguments. The members that access the constructor initialized fields are specified.
Declaration
NewExpressionSlim New(ConstructorInfoSlim constructor, IEnumerable<ExpressionSlim> arguments, IEnumerable<MemberInfoSlim> members)
Parameters
Type | Name | Description |
---|---|---|
ConstructorInfoSlim | constructor | The ConstructorInfoSlim to set the Constructor property equal to. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | arguments | An System.Collections.Generic.IEnumerable<> that contains ExpressionSlim objects to use to populate the Arguments collection. |
System.Collections.Generic.IEnumerable<MemberInfoSlim> | members | An System.Collections.Generic.IEnumerable<> that contains MemberInfoSlim objects to use to populate the Members collection. |
Returns
Type | Description |
---|---|
NewExpressionSlim | A NewExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.New and the Constructor, Arguments and Members properties set to the specified values. |
New(ConstructorInfoSlim, IEnumerable<ExpressionSlim>, MemberInfoSlim[])
Creates a NewExpressionSlim that represents calling the specified constructor with the specified arguments. The members that access the constructor initialized fields are specified as an array.
Declaration
NewExpressionSlim New(ConstructorInfoSlim constructor, IEnumerable<ExpressionSlim> arguments, params MemberInfoSlim[] members)
Parameters
Type | Name | Description |
---|---|---|
ConstructorInfoSlim | constructor | The ConstructorInfoSlim to set the Constructor property equal to. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | arguments | An System.Collections.Generic.IEnumerable<> that contains ExpressionSlim objects to use to populate the Arguments collection. |
MemberInfoSlim[] | members | An array of MemberInfoSlim objects to use to populate the Members collection. |
Returns
Type | Description |
---|---|
NewExpressionSlim | A NewExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.New and the Constructor, Arguments and Members properties set to the specified values. |
New(ConstructorInfoSlim, ExpressionSlim[])
Creates a NewExpressionSlim that represents calling the specified constructor with the specified arguments.
Declaration
NewExpressionSlim New(ConstructorInfoSlim constructor, params ExpressionSlim[] arguments)
Parameters
Type | Name | Description |
---|---|---|
ConstructorInfoSlim | constructor | The ConstructorInfoSlim to set the Constructor property equal to. |
ExpressionSlim[] | arguments | An array of ExpressionSlim objects to use to populate the Arguments collection. |
Returns
Type | Description |
---|---|
NewExpressionSlim | A NewExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.New and the Constructor and Arguments properties set to the specified values. |
New(TypeSlim)
Creates a NewExpressionSlim that represents calling the parameterless constructor of the specified type.
Declaration
NewExpressionSlim New(TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | A TypeSlim that has a constructor that takes no arguments. |
Returns
Type | Description |
---|---|
NewExpressionSlim | A NewExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.New and the Constructor property set to the ConstructorInfoSlim that represents the constructor without parameters for the specified type. |
NewArrayBounds(TypeSlim, IEnumerable<ExpressionSlim>)
Creates a NewArrayExpressionSlim that represents creating an array that has a specified rank.
Declaration
NewArrayExpressionSlim NewArrayBounds(TypeSlim type, IEnumerable<ExpressionSlim> bounds)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | A TypeSlim that represents the element type of the array. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | bounds | An System.Collections.Generic.IEnumerable<> that contains ExpressionSlim objects to use to populate the Expressions collection. |
Returns
Type | Description |
---|---|
NewArrayExpressionSlim | A NewArrayExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.NewArrayBounds and the Expressions property set to the specified value. |
NewArrayBounds(TypeSlim, ExpressionSlim[])
Creates a NewArrayExpressionSlim that represents creating an array that has a specified rank.
Declaration
NewArrayExpressionSlim NewArrayBounds(TypeSlim type, params ExpressionSlim[] bounds)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | A TypeSlim that represents the element type of the array. |
ExpressionSlim[] | bounds | An array of ExpressionSlim objects to use to populate the Expressions collection. |
Returns
Type | Description |
---|---|
NewArrayExpressionSlim | A NewArrayExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.NewArrayBounds and the Expressions property set to the specified value. |
NewArrayInit(TypeSlim, IEnumerable<ExpressionSlim>)
Creates a NewArrayExpressionSlim that represents creating a one-dimensional array and initializing it from a list of elements.
Declaration
NewArrayExpressionSlim NewArrayInit(TypeSlim type, IEnumerable<ExpressionSlim> initializers)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | A TypeSlim that represents the element type of the array. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | initializers | An System.Collections.Generic.IEnumerable<> that contains ExpressionSlim objects to use to populate the Expressions collection. |
Returns
Type | Description |
---|---|
NewArrayExpressionSlim | A NewArrayExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.NewArrayInit and the Expressions property set to the specified value. |
NewArrayInit(TypeSlim, ExpressionSlim[])
Creates a NewArrayExpressionSlim that represents creating a one-dimensional array and initializing it from a list of elements.
Declaration
NewArrayExpressionSlim NewArrayInit(TypeSlim type, params ExpressionSlim[] initializers)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | A TypeSlim that represents the element type of the array. |
ExpressionSlim[] | initializers | An array of ExpressionSlim objects to use to populate the Expressions collection. |
Returns
Type | Description |
---|---|
NewArrayExpressionSlim | A NewArrayExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.NewArrayInit and the Expressions property set to the specified value. |
Not(ExpressionSlim)
Creates a UnaryExpressionSlim that represents a bitwise complement operation.
Declaration
UnaryExpressionSlim Not(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Not and the Operand property set to the specified value. |
Not(ExpressionSlim, MethodInfoSlim)
Creates a UnaryExpressionSlim that represents a bitwise complement operation. The implementing method can be specified.
Declaration
UnaryExpressionSlim Not(ExpressionSlim expression, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Not and the Operand and Method properties set to the specified values. |
NotEqual(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents an inequality comparison.
Declaration
BinaryExpressionSlim NotEqual(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.NotEqual and the Left and Right properties set to the specified values. |
NotEqual(ExpressionSlim, ExpressionSlim, Boolean, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents an inequality comparison.
Declaration
BinaryExpressionSlim NotEqual(ExpressionSlim left, ExpressionSlim right, bool liftToNull, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
System.Boolean | liftToNull | true to set IsLiftedToNull to true; false to set IsLiftedToNull to false. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.NotEqual and the Left, Right, IsLiftedToNull, and Method properties set to the specified values. |
OnesComplement(ExpressionSlim)
Returns the expression representing the ones complement.
Declaration
UnaryExpressionSlim OnesComplement(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | An instance of UnaryExpressionSlim. |
OnesComplement(ExpressionSlim, MethodInfoSlim)
Returns the expression representing the ones complement.
Declaration
UnaryExpressionSlim OnesComplement(ExpressionSlim expression, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim. |
MethodInfoSlim | method | A MethodInfoSlim that represents the implementing method. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | An instance of UnaryExpressionSlim. |
Or(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise langword_csharp_OR operation.
Declaration
BinaryExpressionSlim Or(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Or and the Left and Right properties set to the specified values. |
Or(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a bitwise langword_csharp_OR operation.
Declaration
BinaryExpressionSlim Or(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Or and the Left, Right, and Method properties set to the specified values. |
OrAssign(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise OR assignment operation.
Declaration
BinaryExpressionSlim OrAssign(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.OrAssign and the Left and Right properties set to the specified values. |
OrAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a bitwise OR assignment operation.
Declaration
BinaryExpressionSlim OrAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.OrAssign and the Left, Right, and Method properties set to the specified values. |
OrAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise OR assignment operation.
Declaration
BinaryExpressionSlim OrAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.OrAssign and the Left, Right, Method, and Conversion properties set to the specified values. |
OrElse(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a conditional langword_csharp_OR operation that evaluates the second operand only if the first operand evaluates to false.
Declaration
BinaryExpressionSlim OrElse(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.OrElse and the Left and Right properties set to the specified values. |
OrElse(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a conditional langword_csharp_OR operation that evaluates the second operand only if the first operand evaluates to false.
Declaration
BinaryExpressionSlim OrElse(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.OrElse and the Left, Right, and Method properties set to the specified values. |
Parameter(TypeSlim)
Creates a ParameterExpressionSlim node that can be used to identify a parameter or a variable in an expression tree.
Declaration
ParameterExpressionSlim Parameter(TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The type of the parameter or variable. |
Returns
Type | Description |
---|---|
ParameterExpressionSlim | A ParameterExpressionSlim node with the specified name and type. |
Parameter(TypeSlim, String)
Creates a ParameterExpressionSlim node that can be used to identify a parameter or a variable in an expression tree.
Declaration
ParameterExpressionSlim Parameter(TypeSlim type, string name)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The type of the parameter or variable. |
System.String | name | The name of the parameter or variable, used for debugging or printing purpose only. |
Returns
Type | Description |
---|---|
ParameterExpressionSlim | A ParameterExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Parameter and the System.Linq.Expressions.ExpressionSlim.Type and Name properties set to the specified values. |
PostDecrementAssign(ExpressionSlim)
Creates a UnaryExpressionSlim that represents the assignment of the expression followed by a subsequent decrement by 1 of the original expression.
Declaration
UnaryExpressionSlim PostDecrementAssign(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to apply the operations on. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the resultant expression. |
PostDecrementAssign(ExpressionSlim, MethodInfoSlim)
Creates a UnaryExpressionSlim that represents the assignment of the expression followed by a subsequent decrement by 1 of the original expression.
Declaration
UnaryExpressionSlim PostDecrementAssign(ExpressionSlim expression, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to apply the operations on. |
MethodInfoSlim | method | A MethodInfoSlim that represents the implementing method. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the resultant expression. |
PostIncrementAssign(ExpressionSlim)
Creates a UnaryExpressionSlim that represents the assignment of the expression followed by a subsequent increment by 1 of the original expression.
Declaration
UnaryExpressionSlim PostIncrementAssign(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to apply the operations on. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the resultant expression. |
PostIncrementAssign(ExpressionSlim, MethodInfoSlim)
Creates a UnaryExpressionSlim that represents the assignment of the expression followed by a subsequent increment by 1 of the original expression.
Declaration
UnaryExpressionSlim PostIncrementAssign(ExpressionSlim expression, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to apply the operations on. |
MethodInfoSlim | method | A MethodInfoSlim that represents the implementing method. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the resultant expression. |
Power(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents raising a number to a power.
Declaration
BinaryExpressionSlim Power(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Power and the Left and Right properties set to the specified values. |
Power(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents raising a number to a power.
Declaration
BinaryExpressionSlim Power(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Power and the Left, Right, and Method properties set to the specified values. |
PowerAssign(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents raising an expression to a power and assigning the result back to the expression.
Declaration
BinaryExpressionSlim PowerAssign(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.PowerAssign and the Left and Right properties set to the specified values. |
PowerAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents raising an expression to a power and assigning the result back to the expression.
Declaration
BinaryExpressionSlim PowerAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.PowerAssign and the Left, Right, and Method properties set to the specified values. |
PowerAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents raising an expression to a power and assigning the result back to the expression.
Declaration
BinaryExpressionSlim PowerAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.PowerAssign and the Left, Right, Method, and Conversion properties set to the specified values. |
PreDecrementAssign(ExpressionSlim)
Creates a UnaryExpressionSlim that decrements the expression by 1 and assigns the result back to the expression.
Declaration
UnaryExpressionSlim PreDecrementAssign(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to apply the operations on. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the resultant expression. |
PreDecrementAssign(ExpressionSlim, MethodInfoSlim)
Creates a UnaryExpressionSlim that decrements the expression by 1 and assigns the result back to the expression.
Declaration
UnaryExpressionSlim PreDecrementAssign(ExpressionSlim expression, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to apply the operations on. |
MethodInfoSlim | method | A MethodInfoSlim that represents the implementing method. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the resultant expression. |
PreIncrementAssign(ExpressionSlim)
Creates a UnaryExpressionSlim that increments the expression by 1 and assigns the result back to the expression.
Declaration
UnaryExpressionSlim PreIncrementAssign(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to apply the operations on. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the resultant expression. |
PreIncrementAssign(ExpressionSlim, MethodInfoSlim)
Creates a UnaryExpressionSlim that increments the expression by 1 and assigns the result back to the expression.
Declaration
UnaryExpressionSlim PreIncrementAssign(ExpressionSlim expression, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to apply the operations on. |
MethodInfoSlim | method | A MethodInfoSlim that represents the implementing method. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the resultant expression. |
Property(ExpressionSlim, PropertyInfoSlim)
Creates a MemberExpressionSlim that represents accessing a property.
Declaration
MemberExpressionSlim Property(ExpressionSlim expression, PropertyInfoSlim property)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Expression property equal to. This can be null for static properties. |
PropertyInfoSlim | property | The PropertyInfoSlim to set the Member property equal to. |
Returns
Type | Description |
---|---|
MemberExpressionSlim | A MemberExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.MemberAccess and the Expression and Member properties set to the specified values. |
Property(ExpressionSlim, PropertyInfoSlim, IEnumerable<ExpressionSlim>)
Creates an IndexExpressionSlim representing the access to an indexed property.
Declaration
IndexExpressionSlim Property(ExpressionSlim instance, PropertyInfoSlim indexer, IEnumerable<ExpressionSlim> arguments)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | instance | The object to which the property belongs. If the property is static/shared, it must be null. |
PropertyInfoSlim | indexer | The PropertyInfoSlim that represents the property to index. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | arguments | An System.Collections.Generic.IEnumerable<> of ExpressionSlim objects that are used to index the property. |
Returns
Type | Description |
---|---|
IndexExpressionSlim | The created IndexExpressionSlim. |
Property(ExpressionSlim, PropertyInfoSlim, ExpressionSlim[])
Creates an IndexExpressionSlim representing the access to an indexed property.
Declaration
IndexExpressionSlim Property(ExpressionSlim instance, PropertyInfoSlim indexer, params ExpressionSlim[] arguments)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | instance | The object to which the property belongs. If the property is static/shared, it must be null. |
PropertyInfoSlim | indexer | The PropertyInfoSlim that represents the property to index. |
ExpressionSlim[] | arguments | An array of ExpressionSlim objects that are used to index the property. |
Returns
Type | Description |
---|---|
IndexExpressionSlim | The created IndexExpressionSlim. |
Quote(ExpressionSlim)
Creates a UnaryExpressionSlim that represents an expression that has a constant value of type ExpressionSlim.
Declaration
UnaryExpressionSlim Quote(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Quote and the Operand property set to the specified value. |
ReferenceEqual(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a reference equality comparison.
Declaration
BinaryExpressionSlim ReferenceEqual(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Equal and the Left and Right properties set to the specified values. |
ReferenceNotEqual(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a reference inequality comparison.
Declaration
BinaryExpressionSlim ReferenceNotEqual(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.NotEqual and the Left and Right properties set to the specified values. |
Rethrow()
Creates a UnaryExpressionSlim that represents a rethrowing of an exception.
Declaration
UnaryExpressionSlim Rethrow()
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents a rethrowing of an exception. |
Rethrow(TypeSlim)
Creates a UnaryExpressionSlim that represents a rethrowing of an exception with a given type.
Declaration
UnaryExpressionSlim Rethrow(TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The new TypeSlim of the expression. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents a rethrowing of an exception. |
Return(LabelTargetSlim)
Creates a GotoExpressionSlim representing a return statement.
Declaration
GotoExpressionSlim Return(LabelTargetSlim target)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Return, the Target property set to |
Return(LabelTargetSlim, ExpressionSlim)
Creates a GotoExpressionSlim representing a return statement. The value passed to the label upon jumping can be specified.
Declaration
GotoExpressionSlim Return(LabelTargetSlim target, ExpressionSlim value)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
ExpressionSlim | value | The value that will be passed to the associated label upon jumping. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Continue, the Target property set to |
Return(LabelTargetSlim, ExpressionSlim, TypeSlim)
Creates a GotoExpressionSlim representing a return statement with the specified type. The value passed to the label upon jumping can be specified.
Declaration
GotoExpressionSlim Return(LabelTargetSlim target, ExpressionSlim value, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
ExpressionSlim | value | The value that will be passed to the associated label upon jumping. |
TypeSlim | type | An TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Continue, the Target property set to |
Return(LabelTargetSlim, TypeSlim)
Creates a GotoExpressionSlim representing a return statement with the specified type.
Declaration
GotoExpressionSlim Return(LabelTargetSlim target, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
LabelTargetSlim | target | The LabelTargetSlim that the GotoExpressionSlim will jump to. |
TypeSlim | type | An TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
GotoExpressionSlim | A GotoExpressionSlim with Kind equal to Return, the Target property set to |
RightShift(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise right-shift operation.
Declaration
BinaryExpressionSlim RightShift(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.RightShift and the Left and Right properties set to the specified values. |
RightShift(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a bitwise right-shift operation.
Declaration
BinaryExpressionSlim RightShift(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.RightShift and the Left, Right, and Method properties set to the specified values. |
RightShiftAssign(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise right-shift assignment operation.
Declaration
BinaryExpressionSlim RightShiftAssign(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.RightShiftAssign and the Left and Right properties set to the specified values. |
RightShiftAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a bitwise right-shift assignment operation.
Declaration
BinaryExpressionSlim RightShiftAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.RightShiftAssign and the Left, Right, and Method properties set to the specified values. |
RightShiftAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents a bitwise right-shift assignment operation.
Declaration
BinaryExpressionSlim RightShiftAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.RightShiftAssign and the Left, Right, Method, and Conversion properties set to the specified values. |
Subtract(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents an arithmetic subtraction operation that does not have overflow checking.
Declaration
BinaryExpressionSlim Subtract(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | A ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Subtract and the Left and Right properties set to the specified values. |
Subtract(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents an arithmetic subtraction operation that does not have overflow checking.
Declaration
BinaryExpressionSlim Subtract(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | A ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | A ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.Subtract and the Left, Right, and Method properties set to the specified values. |
SubtractAssign(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a subtraction assignment operation that does not have overflow checking.
Declaration
BinaryExpressionSlim SubtractAssign(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.SubtractAssign and the Left and Right properties set to the specified values. |
SubtractAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a subtraction assignment operation that does not have overflow checking.
Declaration
BinaryExpressionSlim SubtractAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.SubtractAssign and the Left, Right, and Method properties set to the specified values. |
SubtractAssign(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents a subtraction assignment operation that does not have overflow checking.
Declaration
BinaryExpressionSlim SubtractAssign(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.SubtractAssign and the Left, Right, Method, and Conversion properties set to the specified values. |
SubtractAssignChecked(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents a subtraction assignment operation that has overflow checking.
Declaration
BinaryExpressionSlim SubtractAssignChecked(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.SubtractAssignChecked and the Left and Right properties set to the specified values. |
SubtractAssignChecked(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents a subtraction assignment operation that has overflow checking.
Declaration
BinaryExpressionSlim SubtractAssignChecked(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.SubtractAssignChecked and the Left, Right, and Method properties set to the specified values. |
SubtractAssignChecked(ExpressionSlim, ExpressionSlim, MethodInfoSlim, LambdaExpressionSlim)
Creates a BinaryExpressionSlim that represents a subtraction assignment operation that has overflow checking.
Declaration
BinaryExpressionSlim SubtractAssignChecked(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method, LambdaExpressionSlim conversion)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | An ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | An ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
LambdaExpressionSlim | conversion | A LambdaExpressionSlim to set the Conversion property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.SubtractAssignChecked and the Left, Right, Method, and Conversion properties set to the specified values. |
SubtractChecked(ExpressionSlim, ExpressionSlim)
Creates a BinaryExpressionSlim that represents an arithmetic subtraction operation that has overflow checking.
Declaration
BinaryExpressionSlim SubtractChecked(ExpressionSlim left, ExpressionSlim right)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | A ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | A ExpressionSlim to set the Right property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.SubtractChecked and the Left and Right properties set to the specified values. |
SubtractChecked(ExpressionSlim, ExpressionSlim, MethodInfoSlim)
Creates a BinaryExpressionSlim that represents an arithmetic subtraction operation that has overflow checking.
Declaration
BinaryExpressionSlim SubtractChecked(ExpressionSlim left, ExpressionSlim right, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | left | A ExpressionSlim to set the Left property equal to. |
ExpressionSlim | right | A ExpressionSlim to set the Right property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
BinaryExpressionSlim | A BinaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.SubtractChecked and the Left, Right, and Method properties set to the specified values. |
Switch(ExpressionSlim, ExpressionSlim, SwitchCaseSlim[])
Creates a SwitchExpressionSlim that represents a langword_csharp_switch statement that has a default case.
Declaration
SwitchExpressionSlim Switch(ExpressionSlim switchValue, ExpressionSlim defaultBody, params SwitchCaseSlim[] cases)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | switchValue | The value to be tested against each case. |
ExpressionSlim | defaultBody | The result of the switch if |
SwitchCaseSlim[] | cases | The set of cases for this switch expression. |
Returns
Type | Description |
---|---|
SwitchExpressionSlim | The created SwitchExpressionSlim. |
Switch(ExpressionSlim, ExpressionSlim, MethodInfoSlim, IEnumerable<SwitchCaseSlim>)
Creates a SwitchExpressionSlim that represents a langword_csharp_switch statement that has a default case.
Declaration
SwitchExpressionSlim Switch(ExpressionSlim switchValue, ExpressionSlim defaultBody, MethodInfoSlim comparison, IEnumerable<SwitchCaseSlim> cases)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | switchValue | The value to be tested against each case. |
ExpressionSlim | defaultBody | The result of the switch if |
MethodInfoSlim | comparison | The equality comparison method to use. |
System.Collections.Generic.IEnumerable<SwitchCaseSlim> | cases | The set of cases for this switch expression. |
Returns
Type | Description |
---|---|
SwitchExpressionSlim | The created SwitchExpressionSlim. |
Switch(ExpressionSlim, ExpressionSlim, MethodInfoSlim, SwitchCaseSlim[])
Creates a SwitchExpressionSlim that represents a langword_csharp_switch statement that has a default case.
Declaration
SwitchExpressionSlim Switch(ExpressionSlim switchValue, ExpressionSlim defaultBody, MethodInfoSlim comparison, params SwitchCaseSlim[] cases)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | switchValue | The value to be tested against each case. |
ExpressionSlim | defaultBody | The result of the switch if |
MethodInfoSlim | comparison | The equality comparison method to use. |
SwitchCaseSlim[] | cases | The set of cases for this switch expression. |
Returns
Type | Description |
---|---|
SwitchExpressionSlim | The created SwitchExpressionSlim. |
Switch(ExpressionSlim, SwitchCaseSlim[])
Creates a SwitchExpressionSlim that represents a langword_csharp_switch statement without a default case.
Declaration
SwitchExpressionSlim Switch(ExpressionSlim switchValue, params SwitchCaseSlim[] cases)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | switchValue | The value to be tested against each case. |
SwitchCaseSlim[] | cases | The set of cases for this switch expression. |
Returns
Type | Description |
---|---|
SwitchExpressionSlim | The created SwitchExpressionSlim. |
Switch(TypeSlim, ExpressionSlim, ExpressionSlim, MethodInfoSlim, IEnumerable<SwitchCaseSlim>)
Creates a SwitchExpressionSlim that represents a langword_csharp_switch statement that has a default case.
Declaration
SwitchExpressionSlim Switch(TypeSlim type, ExpressionSlim switchValue, ExpressionSlim defaultBody, MethodInfoSlim comparison, IEnumerable<SwitchCaseSlim> cases)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The result type of the switch. |
ExpressionSlim | switchValue | The value to be tested against each case. |
ExpressionSlim | defaultBody | The result of the switch if |
MethodInfoSlim | comparison | The equality comparison method to use. |
System.Collections.Generic.IEnumerable<SwitchCaseSlim> | cases | The set of cases for this switch expression. |
Returns
Type | Description |
---|---|
SwitchExpressionSlim | The created SwitchExpressionSlim. |
Switch(TypeSlim, ExpressionSlim, ExpressionSlim, MethodInfoSlim, SwitchCaseSlim[])
Creates a SwitchExpressionSlim that represents a langword_csharp_switch statement that has a default case..
Declaration
SwitchExpressionSlim Switch(TypeSlim type, ExpressionSlim switchValue, ExpressionSlim defaultBody, MethodInfoSlim comparison, params SwitchCaseSlim[] cases)
Parameters
Type | Name | Description |
---|---|---|
TypeSlim | type | The result type of the switch. |
ExpressionSlim | switchValue | The value to be tested against each case. |
ExpressionSlim | defaultBody | The result of the switch if |
MethodInfoSlim | comparison | The equality comparison method to use. |
SwitchCaseSlim[] | cases | The set of cases for this switch expression. |
Returns
Type | Description |
---|---|
SwitchExpressionSlim | The created SwitchExpressionSlim. |
SwitchCase(ExpressionSlim, IEnumerable<ExpressionSlim>)
Creates a SwitchCaseSlim object to be used in a SwitchExpressionSlim object.
Declaration
SwitchCaseSlim SwitchCase(ExpressionSlim body, IEnumerable<ExpressionSlim> testValues)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | body | The body of the case. |
System.Collections.Generic.IEnumerable<ExpressionSlim> | testValues | The test values of the case. |
Returns
Type | Description |
---|---|
SwitchCaseSlim | The created SwitchCaseSlim. |
SwitchCase(ExpressionSlim, ExpressionSlim[])
Creates a SwitchCaseSlim for use in a SwitchExpressionSlim.
Declaration
SwitchCaseSlim SwitchCase(ExpressionSlim body, params ExpressionSlim[] testValues)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | body | The body of the case. |
ExpressionSlim[] | testValues | The test values of the case. |
Returns
Type | Description |
---|---|
SwitchCaseSlim | The created SwitchCaseSlim. |
Throw(ExpressionSlim)
Creates a UnaryExpressionSlim that represents a throwing of an exception.
Declaration
UnaryExpressionSlim Throw(ExpressionSlim value)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | value | An ExpressionSlim. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the exception. |
Throw(ExpressionSlim, TypeSlim)
Creates a UnaryExpressionSlim that represents a throwing of an exception with a given type.
Declaration
UnaryExpressionSlim Throw(ExpressionSlim value, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | value | An ExpressionSlim. |
TypeSlim | type | The new TypeSlim of the expression. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that represents the exception. |
TryCatch(ExpressionSlim, CatchBlockSlim[])
Creates a TryExpressionSlim representing a try block with any number of catch statements and neither a fault nor finally block.
Declaration
TryExpressionSlim TryCatch(ExpressionSlim body, params CatchBlockSlim[] handlers)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | body | The body of the try block. |
CatchBlockSlim[] | handlers | The array of zero or more CatchBlockSlim expressions representing the catch statements to be associated with the try block. |
Returns
Type | Description |
---|---|
TryExpressionSlim | The created TryExpressionSlim. |
TryCatchFinally(ExpressionSlim, ExpressionSlim, CatchBlockSlim[])
Creates a TryExpressionSlim representing a try block with any number of catch statements and a finally block.
Declaration
TryExpressionSlim TryCatchFinally(ExpressionSlim body, ExpressionSlim finally, params CatchBlockSlim[] handlers)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | body | The body of the try block. |
ExpressionSlim | finally | The body of the finally block. |
CatchBlockSlim[] | handlers | The array of zero or more CatchBlockSlim expressions representing the catch statements to be associated with the try block. |
Returns
Type | Description |
---|---|
TryExpressionSlim | The created TryExpressionSlim. |
TryFault(ExpressionSlim, ExpressionSlim)
Creates a TryExpressionSlim representing a try block with a fault block and no catch statements.
Declaration
TryExpressionSlim TryFault(ExpressionSlim body, ExpressionSlim fault)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | body | The body of the try block. |
ExpressionSlim | fault | The body of the fault block. |
Returns
Type | Description |
---|---|
TryExpressionSlim | The created TryExpressionSlim. |
TryFinally(ExpressionSlim, ExpressionSlim)
Creates a TryExpressionSlim representing a try block with a finally block and no catch statements.
Declaration
TryExpressionSlim TryFinally(ExpressionSlim body, ExpressionSlim finally)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | body | The body of the try block. |
ExpressionSlim | finally | The body of the finally block. |
Returns
Type | Description |
---|---|
TryExpressionSlim | The created TryExpressionSlim. |
TypeAs(ExpressionSlim, TypeSlim)
Creates a UnaryExpressionSlim that represents an explicit reference or boxing conversion where null is supplied if the conversion fails.
Declaration
UnaryExpressionSlim TypeAs(ExpressionSlim expression, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
TypeSlim | type | A TypeSlim to set the System.Linq.Expressions.ExpressionSlim.Type property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.TypeAs and the Operand and System.Linq.Expressions.ExpressionSlim.Type properties set to the specified values. |
TypeEqual(ExpressionSlim, TypeSlim)
Creates a TypeBinaryExpressionSlim that compares run-time type identity.
Declaration
TypeBinaryExpressionSlim TypeEqual(ExpressionSlim expression, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the ExpressionSlim property equal to. |
TypeSlim | type | A System.Linq.Expressions.ExpressionSlim.Type to set the TypeOperand property equal to. |
Returns
Type | Description |
---|---|
TypeBinaryExpressionSlim | A TypeBinaryExpressionSlim for which the NodeType property is equal to System.Linq.Expressions.Expression.TypeEqual(System.Linq.Expressions.Expression,System.Type) and for which the ExpressionSlim and TypeOperand properties are set to the specified values. |
TypeIs(ExpressionSlim, TypeSlim)
Creates a TypeBinaryExpressionSlim.
Declaration
TypeBinaryExpressionSlim TypeIs(ExpressionSlim expression, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Expression property equal to. |
TypeSlim | type | A System.Linq.Expressions.ExpressionSlim.Type to set the TypeOperand property equal to. |
Returns
Type | Description |
---|---|
TypeBinaryExpressionSlim | A TypeBinaryExpressionSlim for which the NodeType property is equal to System.Linq.Expressions.ExpressionType.TypeIs and for which the Expression and TypeOperand properties are set to the specified values. |
UnaryPlus(ExpressionSlim)
Creates a UnaryExpressionSlim that represents a unary plus operation.
Declaration
UnaryExpressionSlim UnaryPlus(ExpressionSlim expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.UnaryPlus and the Operand property set to the specified value. |
UnaryPlus(ExpressionSlim, MethodInfoSlim)
Creates a UnaryExpressionSlim that represents a unary plus operation.
Declaration
UnaryExpressionSlim UnaryPlus(ExpressionSlim expression, MethodInfoSlim method)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to set the Operand property equal to. |
MethodInfoSlim | method | A MethodInfoSlim to set the Method property equal to. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | A UnaryExpressionSlim that has the NodeType property equal to System.Linq.Expressions.ExpressionType.UnaryPlus and the Operand and Method properties set to the specified values. |
Unbox(ExpressionSlim, TypeSlim)
Creates a UnaryExpressionSlim that represents an explicit unboxing.
Declaration
UnaryExpressionSlim Unbox(ExpressionSlim expression, TypeSlim type)
Parameters
Type | Name | Description |
---|---|---|
ExpressionSlim | expression | An ExpressionSlim to unbox. |
TypeSlim | type | The new TypeSlim of the expression. |
Returns
Type | Description |
---|---|
UnaryExpressionSlim | An instance of UnaryExpressionSlim. |