Back to Browse

Assemblies as Friends in C#

7.3K views
Feb 7, 2023
14:41

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

Download

1 formats

Video Formats

360pmp431.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Assemblies as Friends in C# | NatokHD