class Test { static void Main() { int a; int b = 1; int c = a + b; // error, a not yet assigned ... } } 將會產生編譯時期錯誤,因為它嘗試在變數 ...
msdn.microsoft.com