Created
October 3, 2013 02:22
-
-
Save Fhernd/6803703 to your computer and use it in GitHub Desktop.
Demostración del conflicto entre nombres de tipos y nombres de namespaces en C#.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace N | |
{ | |
class A | |
{ | |
public class B | |
{ | |
// ... | |
} | |
static void Main() | |
{ | |
new A.B(); // Instancia un objeto de la clase anidada B | |
} | |
} | |
} | |
namespace A | |
{ | |
class B | |
{ | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment