10 [DebuggerTypeProxy(typeof(SwitchExpressionProxy))]
11 [global::__DynamicallyInvokable]
14 private readonly
Type _type;
26 [global::__DynamicallyInvokable]
29 [global::__DynamicallyInvokable]
38 [global::__DynamicallyInvokable]
41 [global::__DynamicallyInvokable]
50 [global::__DynamicallyInvokable]
53 [global::__DynamicallyInvokable]
62 [global::__DynamicallyInvokable]
65 [global::__DynamicallyInvokable]
74 [global::__DynamicallyInvokable]
77 [global::__DynamicallyInvokable]
86 [global::__DynamicallyInvokable]
89 [global::__DynamicallyInvokable]
96 internal bool IsLifted
100 if (_switchValue.Type.IsNullableType())
102 if (!(_comparison ==
null))
104 return !TypeUtils.AreEquivalent(_switchValue.Type, _comparison.GetParametersCached()[0].ParameterType.GetNonRefType());
115 _switchValue = switchValue;
116 _defaultBody = defaultBody;
117 _comparison = comparison;
121 protected internal override Expression Accept(ExpressionVisitor visitor)
123 return visitor.VisitSwitch(
this);
131 [global::__DynamicallyInvokable]
ReadOnlyCollection< SwitchCase > Cases
Gets the collection of T:System.Linq.Expressions.SwitchCase objects for the switch.
SwitchExpression Update(Expression switchValue, IEnumerable< SwitchCase > cases, Expression defaultBody)
Creates a new expression that is like this one, but using the supplied children. If all of the childr...
Provides the base class for a generic read-only collection.
Discovers the attributes of a method and provides access to method metadata.
Expression SwitchValue
Gets the test for the switch.
Exposes the enumerator, which supports a simple iteration over a collection of a specified type....
MethodInfo Comparison
Gets the equality comparison method, if any.
sealed override ExpressionType NodeType
Returns the node type of this Expression. Extension nodes should return F:System.Linq....
Provides the base class from which the classes that represent expression tree nodes are derived....
Represents type declarations: class types, interface types, array types, value types,...
Represents a control expression that handles multiple selections by passing control to T:System....
ExpressionType
Describes the node types for the nodes of an expression tree.
sealed override Type Type
Gets the static type of the expression that this T:System.Linq.Expressions.Expression represents.
Expression DefaultBody
Gets the test for the switch.