共用方式為


編譯器錯誤 CS0432

更新:2007 年 11 月

錯誤訊息

找不到別名 'identifier'

當您在不是別名的識別項右邊使用 "::" 時,便會發生這個錯誤。若要解決這個錯誤,請改用 "."。

下列範例會產生 CS0432:

// CS0432.cs
namespace A {
    public class B {
        public static void Meth() { }
    }
}

public class Test
{
    public static void Main()
    {
        A::B.Meth();   // CS0432
       // To resolve, use the following line instead:
       // A.B.Meth();
    }
}