Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 997321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:00:52+00:00 2026-05-16T07:00:52+00:00

i am new to C# and reading this protected : Only derived types or

  • 0

i am new to C# and reading this

  • protected: Only derived types or members of the same type.
  • internal: Only code within the same assembly. Can also be code external to object as long as it is in the same assembly. (default for types)
  • protected internal: Either code from derived type or code in the same assembly. Combination of protected OR internal.

whats protected internal for? doesn’t internal also allow derived types to access the variables?

and whats an assembly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:00:52+00:00Added an answer on May 16, 2026 at 7:00 am

    Assemblies

    An assembly is the .dll or .exe file that you get from compiling your code. If you have multiple projects within Visual Studio, then they will compile to different assemblies.

    See Assemblies on the MSDN for more information.

    Protected Internal

    protected internal means it can be accessed both from sub-classes and classes within the same assembly. It is a more visible access modifier than protected or internal alone. If you want to restrict class members to only derived classes within the same assembly, then you must mark the class itself as internal and its members as protected.

    See Access Modifiers (C# Programming Guide) for more information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am fairly new to programming and while doing a lot of reading this
I keep reading about how great this new Canvas element for HTML5 is and
I've been reading about the new developer-only RC0 for Silverlight, and the fact that
With the following file reading code: using (FileStream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read,
I am new to JQuery. I'm reading JQuery in action, but only up to
I have some code which must be thread safe whose behavior resembles this: protected
I am new to this whole design concept, and in reading for the last
I am still very new to Ruby (reading through the Pickaxe and spending most
I'm new to Windows programming and after reading the Petzold book I wonder: is
Thanks for reading. I'm a bit new to jQuery, and am trying to make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.