When would you use the protected internal and internal access modifier?
Loading
When would you use the protected internal and internal access modifier?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaish MathewsPosted May 6, 2010, 4:35 AM
eg:-
// Assembly1.cs // compile with: /target:library internal class BaseClass { public static int intM = 0; }// Assembly1_a.cs // compile with: /reference:Assembly1.dll class TestAccess { static void Main() { BaseClass myBase = new BaseClass(); // Compile erro will get. } }