C# Class Microsoft.CSharp.Expressions.SwitchCSharpExpression

Represents a switch expression.
Inheritance: Microsoft.CSharp.Expressions.CSharpExpression
Show file Open project: bartdesmet/ExpressionFutures

Public Methods

Method Description
Reduce ( ) : Expression

Reduces the expression node to a simpler expression.

Update ( Expression expression, IEnumerable arms ) : SwitchCSharpExpression

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.

Private Methods

Method Description
Accept ( CSharpExpressionVisitor visitor ) : Expression
IsAlwaysTrue ( Expression e ) : bool
SwitchCSharpExpression ( Type type, Expression expression, ReadOnlyCollection arms ) : System

Method Details

Reduce() public method

Reduces the expression node to a simpler expression.
public Reduce ( ) : Expression
return Expression

Update() public method

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.
public Update ( Expression expression, IEnumerable arms ) : SwitchCSharpExpression
expression Expression The property of the result.
arms IEnumerable The property of the result.
return SwitchCSharpExpression