VB.NET Module - Can I force the use of .Public_Member_Name when accessing pub. Members?

后端 未结 3 578
有刺的猬
有刺的猬 2020-12-21 23:54

I have a situation where I have several VB.NET Modules in the same Logical-Module of a large application.

I would like the update function of each module to be publ

3条回答
  •  猫巷女王i
    2020-12-22 00:28

    No.

    The VB.NET specifications automatically use Type Promotion to allow this behavior to occur. The only way to avoid this is to have a type at the namespace that has the same name (Update) which would prevent (defeat) the type promotion provided in VB.NET.

提交回复
热议问题