public void Print2() { AssemblyOneClass1 A1 = new AssemblyOneClass1(); // We can not access protected internal member (Name) by instance of AssemblyOneClass1 class. //Console.WriteLine(A1.Name); // But by Console.WriteLine("Protected internal member of different assembly is accessable in different assembly but in derived class using base keyword : " + base.Name); // OR Console.WriteLine(); AssemblyTwoClass2 A2 = new AssemblyTwoClass2(); Console.WriteLine("Protected internal member of different assembly is accessable in different assembly but in derived class usign instance of child class only : "+ A2.Name); }
public void Print2() { AssemblyOneClass1 A1 = new AssemblyOneClass1(); // We can not access protected internal member (Name) by instance of AssemblyOneClass1 class. //Console.WriteLine(A1.Name); // But by Console.WriteLine("Protected internal member of different assembly is accessable in different assembly but in derived class using base keyword : " + base.Name); // OR Console.WriteLine(); AssemblyTwoClass2 A2 = new AssemblyTwoClass2(); Console.WriteLine("Protected internal member of different assembly is accessable in different assembly but in derived class usign instance of child class only : " + A2.Name); }