Sorry if this question is confusing. I have a public static class inside my project that I want accessible anywhere inside my application. However, I don’t want this class exposed when someone else references my DLL in another project.
Is it possible to do this?
Many Thanks!
Use the internal modifier on the class instead of public. You can also make
assembly:[InternalsVisibleTo("SomeOtherAssembly")]if you want to make the class accessible to another specific DLL.