SwitchExpression Properties

The SwitchExpression type exposes the following members.

  Name Description
Public property CanReduce Indicates that the node can be reduced to a simpler node. If this returns true, Reduce() can be called to produce the reduced form. (Inherited from Expression.)
Public property Cases Gets the collection of SwitchCase objects for the switch.
Public property Comparison Gets the equality comparison method, if any.
Public property DefaultBody Gets the test for the switch.
Public property NodeType Returns the node type of this Expression. Extension nodes should return Extension when overriding this method. (Overrides Expression.NodeType.)
Public property SwitchValue Gets the test for the switch.
Public property Type Gets the static type of the expression that this Expression represents. (Overrides Expression.Type.)
Top

Community Additions

ADD
Show: