Only assignment, call, increment, decrement, and new expressions can be used as a statement
The compiler generates an error when it encounters a meaningless statement.
The following sample generates CS0201:
using System; public class MainClass { public static void Main () { 2 * 3; // CS0201 } }