c# - Ambiguous type name -


I have a problem with the type of shadowed visibility. Let's assume the following code:

  Namespace A {class B {int V1; Class A {Class B}} void Foo () {ABB; // The first type of "B" should be "B", // but it is actually a B.A.B. BV1 = 1; // compilation error}}}}  

How can I declare a variable of type "AB" (where "A" should be a name slot, not a nested class "A") Can the location, where "B" has been declared?

Use the keyword "global":

Global: : AB B;


Comments