Assemblies as Friends in C#
Channel: Hassan Habib
Date: 2023-02-07

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/dotnet/api/system.runtime.compilerservices.internalsvisibletoattribute?redirectedfrom=MSDN&view=net-7.0

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