Compiler Error CS0431
Cannot use alias 'identifier' with '::' since the alias references a type. Use '.' instead.
You used "::" with an alias that references a type. To resolve this error, use the "." operator.
The following sample generates CS0431:
// CS0431.cs
using A = Outer;
public class Outer
{
public class Inner
{
public static void Meth() {}
}
}
public class MyClass
{
public static void Main()
{
A::Inner.Meth(); // CS0431
A.Inner.Meth(); // OK
}
}