Methods declared as protected
can only be used in the classes and their subclasses.
If you want to use method outside of the class, you should declare it as public
:
public void MyMethod()
or, if the caller is defined in the same assembly, internal
:
internal void MyMethod()