Assemblies as Friends in C#

Опубликовано: 27 Июль 2026
на канале: Hassan Habib
7,293
286

In this session, I'm going to show you how classes or assemblies can be friends in C#. This means that some private members, methods or classes in some assembly will only be exposed to friend assembly but not others.

This feature is extremely important for test-driven systems and shared assemblies or libraries or nuget packages with external consumers.

Here's a reference to this feature here:
https://learn.microsoft.com/en-us/dot...

Here's a link to LeVent project:
https://github.com/hassanhabib/LeVent