Skip to content

Confusion about the internal access modifier #26047

@jackytank

Description

@jackytank

[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
image
image


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions