Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created October 3, 2013 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fhernd/6803703 to your computer and use it in GitHub Desktop.
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#.
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