Also check the access modifiers. The class containing the method you are trying to call must be declared public
.
If you do not specify an access modifier, by default the class internal
means that it is only available to code in the same assembly.
(I'm assuming C #)
a source
to share