.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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -