What is protected internal class in C#

Showing Answers 1 - 7 of 7 Answers

Ela

  • Jul 10th, 2006
 

Protected Internal item is visible only to the current assembly or types derived from the containing class

  Was this answer useful?  Yes

Mahesh

  • Jul 24th, 2006
 

Class can be internal not protected or not even protected internal. Class can have only two access modifiers Public and internal.

if any field or method having access modifier protected internal then this field available to the others assemblies class and as well as class whose inharits this class.

www.geekswithblogs.net/mahesh

  Was this answer useful?  Yes

Jay

  • Sep 18th, 2006
 

You can have nested class as private or protected.

like

public class outer

{

protected class inner

{

 int i;

]

}

  Was this answer useful?  Yes

Yuriy

  • Sep 20th, 2006
 

Class can be internal not protected or not even protected internal. Class can have only two access modifiers Public and internal.

Check C# reference.  Class can be protected internal

  Was this answer useful?  Yes

Rajesh K

  • Feb 12th, 2007
 

Hi, A class contain different access modifier. The Protected and Protected Internal are two access modifier..Protected ; can only access with in the base class and also accessible from the derive class.Protected Internal ; can only access with in base class and from the current assembly.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions