Guest User

Untitled

a guest
Jan 7th, 2017
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. public class Program
  2. {
  3.     public static void Main()
  4.     {
  5.         Outer.CreateInstance(5);
  6.     }
  7. }
  8.  
  9. public static class Outer
  10. {
  11.     public static void CreateInstance(int a)
  12.     {
  13.         new Nested(a);
  14.     }
  15.    
  16.     private class Nested
  17.     {
  18.         int a;
  19.         private Nested(int a)
  20.         {
  21.             this.a = a;
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment