I have 2 projects:
- A Class Library that contains my
classes/business logic - A WPF
application that uses the Class
Library (DLL)
I have been given the task of hiding all of the Class Library functions and classes so that it cannot be called or used by external applications.
My problem is that the WPF application is an “external application”.
I changed all Public scope modifiers for all of the classes and properties to Friend.
I then tried combining both projects into one solution…which of course didn’t work.
Within the solution that contains both projects, I also tried changing the “Assembly” of the Class Library to match the WPF (Because “Friend” allows code within the same assembly to use it)…but this doesn’t work either.
Does anyone know of a way to accomplish this?
Thanks
-Frinny
Use the InternalsVisibleTo attribute.