共用方式為


編譯器警告 (層級 3) CS0105

更新:2007 年 11 月

錯誤訊息

對 'namespace' 的 using 指示詞之前在此命名空間出現過

命名空間應該只能宣告一次,但卻宣告了一次以上;請移除所有重複的命名空間宣告。

下列範例會產生 CS0105:

// CS0105.cs
// compile with: /W:3
using System;
using System;   // CS0105

public class a
{
   public static void Main()
   {
   }
}