Const 存放的變數是非動態值
Static 則存放動態值
Example:
public const int c2 = c1 + 1;
public static int s1 = 6;
c1 = s1; //錯誤
s1 = c2+1;
Label2.Text = "const:" + c1 + " const2:" + c2 + " static:" + s1;
OutPut:參考資訊:
http://www.dotblogs.com.tw/kim/archive/2009/05/11/const.aspx