Compiler Error CS0432
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Compiler Error CS0432

Alias 'identifier' not found

This error occurs when you use "::" to the right of an identifier that is not an alias. To resolve the error, use "." instead.

The following example generates 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();
    }
}
Show:
© 2016 Microsoft