Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Unfortunately in .NET 3.5 you cannot build an expression which performs a series of arbitrary operations. Here's the list of supported expressions:</p> <ul> <li>Arithmetic: Add, AddChecked, Divide, Modulo, Multiply, MultiplyChecked, Negate, NegateChecked, Power, Subtract, SubtractChecked, UnaryPlus</li> <li>Creation: Bind, ElementInit, ListBind, ListInit, MemberBind, MemberInit, New, NewArrayBounds, NewArrayInit</li> <li>Bitwise: And, ExclusiveOr, LeftShift (&lt;&lt;), Not, Or, RightShift (>>)</li> <li>Logical: AndAlso (&amp;&amp;), Condition (? :), Equal, GreaterThan, GreaterThanOrEqual, LessThan, * LessThanOrEqual, NotEqual, OrElse (||), TypeIs</li> <li>Member Access: ArrayIndex, ArrayLength, Call, Field, Property, PropertyOrField</li> <li>Other: Convert, ConvertChecked, Coalesce (??), Constant, Invoke, Lambda, Parameter, TypeAs, Quote</li> </ul> <p>.NET 4 extends this API by adding the following expressions:</p> <ul> <li>Mutation: AddAssign, AddAssignChecked, AndAssign, Assign, DivideAssign, ExclusiveOrAssign, LeftShiftAssign, ModuloAssign, MultiplyAssign, MultiplyAssignChecked, OrAssign, PostDecrementAssign, PostIncrementAssign, PowerAssign, PreDecrementAssign, PreIncrementAssign, RightShiftAssign, SubtractAssign, SubtractAssignChecked</li> <li>Arithmetic: Decrement, Default, Increment, OnesComplement</li> <li>Member Access: ArrayAccess, Dynamic</li> <li>Logical: ReferenceEqual, ReferenceNotEqual, TypeEqual</li> <li>Flow: Block, Break, Continue, Empty, Goto, IfThen, IfThenElse, IfFalse, IfTrue, Label, Loop, Return, Switch, SwitchCase, Unbox, Variable</li> <li>Exceptions: Catch, Rethrow, Throw</li> <li>Debug: ClearDebugInfo, DebugInfo</li> </ul> <p>The <a href="http://msdn.microsoft.com/en-us/library/system.linq.expressions.expression.block(VS.100).aspx" rel="nofollow noreferrer">Block</a> expression is particularly interesting.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload