Skip to content

Conversation

@BartoszKlonowski
Copy link
Contributor

@BartoszKlonowski BartoszKlonowski commented Nov 23, 2023

This pull request fixes #38353
It adds the note regarding the fact that two same assemblies can't be equal when defined in separate assemblies, due to internal access set by default.

Note that this PR also updates the summary table of default access modifiers. That is to have that given as a reference, as I couldn't find anything about the default access of an anonymous type anywhere else.


Internal previews

📄 File 🔗 Preview link
docs/csharp/fundamentals/types/anonymous-types.md Anonymous types
docs/csharp/programming-guide/classes-and-structs/access-modifiers.md Access Modifiers (C# Programming Guide)

@dotnet-bot dotnet-bot added this to the November 2023 milestone Nov 23, 2023
@ghost ghost added the community-contribution Indicates PR is created by someone from the .NET community. label Nov 23, 2023
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @BartoszKlonowski

This looks great, with one small nit. I'll commit my suggestion and then :shipit:

@BillWagner BillWagner enabled auto-merge (squash) November 27, 2023 15:44
@BillWagner BillWagner merged commit 2989372 into dotnet:main Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc fundamentals/subsvc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anonymous type accros assembly

3 participants