Expressions

Expressions are statements that produce a value. Expressions can be used anywhere markup programming expects an item of type object and must be used anywhere an ExpressionCollection is expected. For example, GetItem, which is itself an expression, takes an Index property which is of type object and so you can supply an expression instead. Likewise, Call, which is also an expression, has an Arguments property which is an ExpressionCollection so all of the elements of Arguments must be expressions. This restriction is necessary in order to fully support data binding. If you need to supply a simple value, you can wrap it with Expr.

  • Block
  • Call
  • Collection
  • Expr
  • Get
  • GetItem
  • Iterator
  • New
  • Object
  • Operator
  • Path
  • Script
  • Set
  • SetItem

@hash=c6bc72cf@

Last edited Mar 31, 2011 at 6:22 AM by jrs, version 15

Comments

No comments yet.