-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Description
[Enter feedback here]
When I created 2 .cs files, the first one have 1 internal class and 1 internal member field. As the doc said you can't create an object of an internal class from different .cs file but I still can instantiate the first class and access the internal member field


Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: ac43c546-b79a-a4cb-6b59-7037334b83e0
- Version Independent ID: 4926fa62-f791-dc1a-7c09-7b268180d20e
- Content: internal - C# Reference
- Content Source: docs/csharp/language-reference/keywords/internal.md
- Product: dotnet-csharp
- Technology: csharp-language-reference
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn