J
Joe Duchtel
Hello -
The following two files are part of a project in Visual Studio 2008.
I'm a little confused about the way doing the Imports NamespaceA.cTest
is hiding the getValue() from Module Main. This works without the
"NamespaceA." if I specify NamespaceA as the root namespace for the
solution.
I thought I could access both getValue() but I guess I don't
understand something quite right ...
File1.vb:
Imports NamespaceA
Imports NamespaceA.cTest ' <<< This required the "NamespaceA." below
Module Main
Dim lTest As New cTest
Sub Tester()
lTest.getValue(1)
NamespaceA.getValue("") ' <<< Why do I need "NamespaceA."
here???
End Sub
End Module
File2.vb:
Namespace NamespaceA
Module Main
Function getValue(ByVal aA As String) As Single
Return 0.0
End Function
End Module
Class cTest
Function getValue(ByVal aB As Single) As String
Return ""
End Function
End Class
End Namespace
Thanks,
Joe
The following two files are part of a project in Visual Studio 2008.
I'm a little confused about the way doing the Imports NamespaceA.cTest
is hiding the getValue() from Module Main. This works without the
"NamespaceA." if I specify NamespaceA as the root namespace for the
solution.
I thought I could access both getValue() but I guess I don't
understand something quite right ...
File1.vb:
Imports NamespaceA
Imports NamespaceA.cTest ' <<< This required the "NamespaceA." below
Module Main
Dim lTest As New cTest
Sub Tester()
lTest.getValue(1)
NamespaceA.getValue("") ' <<< Why do I need "NamespaceA."
here???
End Sub
End Module
File2.vb:
Namespace NamespaceA
Module Main
Function getValue(ByVal aA As String) As Single
Return 0.0
End Function
End Module
Class cTest
Function getValue(ByVal aB As Single) As String
Return ""
End Function
End Class
End Namespace
Thanks,
Joe