public void TestC() { // test methoden in class C. Deze class // bevindt zich in een andere assembly Bibliotheek.C c = new Bibliotheek.C(); // Console.WriteLine(c.Standaard()); Console.WriteLine(c.Public()); // Console.WriteLine(c.Protected()); // Console.WriteLine(c.Internal()); // Console.WriteLine(c.Private()); }
static void Main(string[] args) { Console.WriteLine("Class A testen"); A a = new A(); a.Test(); Console.WriteLine("Class B testen"); B b = new B(); b.Test(); Console.WriteLine("Class B testen vanuit class A"); a.TestB(); Console.WriteLine("Class C testen"); Bibliotheek.C c = new Bibliotheek.C(); c.Test(); Console.WriteLine("Class C testen vanuit class A"); a.TestC(); }