.net - Why is this Public Function in a Module not accessible -
i have assembly comprised of several useful little utilities. within have module containing simple public function.
module fishtrackerconfigurations public function getvalueofuseproductid boolean return vtlgetuseproductid 'a simple private routine in same module end function end module
when call function project (in assembly referenced following error.
error bc30390 'fishtrackerconfigurations.public function getvalueofuseproductid() boolean' not accessible in context because 'public'.
the function being called within projects application.xaml.vb file, in protected overrides sub onstartup(e startupeventargs) routine.
i'd know why happens.
although method public
, module (by default) not.
you need specify explicitly:
public module fishtrackerconfigurations
Comments
Post a Comment