The internal keyword is an access modifier for types and type members. Internal types or members are accessible only within files in the same assembly
Types or members that have access modifier protected internal can be accessed from the current assembly or from types that are derived from the containing class.
For a comparison of internal with the other access modifiers, see Accessibility Levels (C# Reference) and Access Modifiers (C# Programming Guide).
For more information about assemblies, see Assemblies and the Global Assembly Cache (C# and Visual Basic).
A common use of internal access is in component-based development because it enables a group of components to cooperate in a private manner without being exposed to the rest of the application code. For example, a framework for building graphical user interfaces could provide Control and Form classes that cooperate by using members with internal access. Since these members are internal, they are not exposed to code that is using the framework.
It is an error to reference a type or a member with internal access outside the assembly within which it was defined.Syntax:
public class BaseClass
// Only accessible within the same assembly
internal static int x = 0;
// Compile with: /reference:Assembly1.dll
public class TestAccess
static void Main()
BaseClass myBase = new BaseClass(); // Ok.
BaseClass.intM = 444; // CS0117
Java Enterprise Edition (EE)
Java Standard Edition (SE)
RFC (standard status)
RFC (proposed standard status)
RFC (draft standard status)
RFC (informational status)
RFC (experimental status)
RFC (best current practice status)
RFC (historic status)
RFC (unknown status)
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 261 / 158781300. Delta: 0.00263 с