I want to know the difference between the public and internal visibility modifiers.
public
internal
When should we use internal on a class and
Public can also be accessed outside of the assembly. So when you have a class that shouldn't be accessed every class in the assembly should be able to access it, then internal is the right thing. If you need outside access, use public.