Statements: Expression statement

The expression statement evaluates an expression.

Syntax

expression;

Discussion

The expression statement evaluates the given expression according to rules described in Expressions. Usually the expression performs an assignment or a method invocation. For example:

// Assign a new value to a property
SomeTextView.Bounds.origin = <100,200>;

// Invoke a method
InvalidateViewState();