Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Program
- {
- public static void Main()
- {
- Outer.CreateInstance(5);
- }
- }
- public static class Outer
- {
- public static void CreateInstance(int a)
- {
- new Nested(a);
- }
- private class Nested
- {
- int a;
- private Nested(int a)
- {
- this.a = a;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment