Advertisement
Fhernd

ConflictoNamespaceYClase.cs

Nov 12th, 2017
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. namespace N
  2. {
  3.     class A
  4.     {
  5.         public class B
  6.         {
  7.             // ...
  8.         }
  9.  
  10.         static void Main()
  11.         {
  12.             new A.B();      // Instancia un objeto de la clase anidada B
  13.         }
  14.     }
  15. }
  16.  
  17. namespace A
  18. {
  19.     class B
  20.     {
  21.         // ...
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement