Tags Elements defined in a namespace cannot be explicitly declared as private, protected, or protected internal c# internal class example c# enum internal c# …

source

12
Leave a Reply

avatar
12 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
treasure2387Unlimited EntertainmentkudvenkatComments Repliesamit singh Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
George Atester
Guest

learnt something new today!

Ashish Jaryal
Guest

Hi Venkat, your tutorials are quite helpful.
Here I have a question :
"It's a compile time error to use private, protected and protected internal access modifiers with type".
I understand, this is the rule of C# but why?
Can you please throw some light on this concept?

Steve Earle
Guest

would I be correct in saying the default access modifiers are always the most restrictive available?

Siddhant Pednekar siddp28atgmaildotcom
Guest

ur just awesome…………..

Rashmi H
Guest

Hi Venkat, I have a question,
Suppose i have created a class as internal which is available within an assembly,
where as i will declare a fields in a class as public, can i access these fields in another assembly with out these class??  which is not possible right, then what is the point in having internal for a class and public for a members of a class ?

Obula Reddy
Guest

Excellent C# tutorial , Thank you very much  Venkat !!!

john smith
Guest

awesome  series.

amit singh
Guest

Dear Venkat,
Thank you, you are simply awesome!!! I am new to C# programming and found your tutorials very useful. These are simple and industry oriented, please keep it up :). I wish you a great success in your life. Definitely in coming future I am going to support you for the betterment of humanity.

Comments Replies
Guest

Simply the best, I have learned so much, Thank you very much!

kudvenkat
Guest

Hi Nitin, you can find part 50 in c# tutorial playlist, or you can search youtube with the following search string – Internal and Protected Internal Access Modifiers in C#. I have included the C# playlist in the description of this video. The playlist contains all the videos in logical sequence. Hope you will find it useful. Good Luck.

Unlimited Entertainment
Guest

where is Part 50? not available in the List

treasure2387
Guest

a nested class can be private