public static void Main(string[] args) { Outside outside = new Outside(); Outside.Inside obj = new Outside.Inside(outside); obj.Print(); }
static void Main(string[] args) { Outside.Inside inside = new Outside.Inside(); inside.Print(); Outside o = new Outside(); o.Display(); }
public static void Main() { Outside out1 = new Outside(); out1.Wyswietl(); Outside.Inside ins1 = new Outside.Inside(); ins1.Ustaw(100); //wyjątek NullReferenceException out1.Wyswietl(); Console.ReadKey(); }