You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
You create a component to handle user authorization. The component contains a class named SecurityManager that has a method named CheckRights.
The CheckRights method is called by several classes within the component. You need to prevent the CheckRights method from being called directly by
the applications that consume the component.
What should you do?
A.
Set the [MTAThread] attribute for the CheckRights method.
B.
Set the access modifier of the CheckRights method to private.
C.
Set the access modifier of the CheckRights method to internal.
D.
Set the [ComVisible(false)] attribute for the CheckRights method.