共用方式為


編譯器警告 (層級 4) CS0078

更新:2007 年 11 月

錯誤訊息

字尾 'l' 很容易與數字 '1' 混淆 -- 請使用 'L' 避免困擾

編譯器會在其偵測到使用小寫 l 而非大寫 L 來轉換成長整數 (Long) 時,發出警告。

下列範例會產生 CS0078:

// CS0078.cs
// compile with: /W:4
class test {
   public static void TestL(long i)
   {
   }

   public static void TestL(int i)
   {
   }

   public static void Main()
   {
      TestL(25l);   // CS0078
      // try the following line instead
      // TestL(25L);
   }
}