什么是表达式:An expressions is a syntactic entity whose evaluation either produces a value
or fails to terminate
, in which case the expression is undefined.
evaluate a single value, object, method, or namespace
Single Value
int x = 100;
x++;
++x;
Object
(new Form()).ShowDialog();
Method
// Console.WriteLine 就是方法
Action myActino = new Action(Console.WriteLine);
Namespace
// System.Windows.Forms 名称空间访问表达式
System.Windows.Forms.Form myForm = new Form();