I've seen some code where a Class is imported, instead of a namespace, making all the static members/methods of that class available. Is this a feature of VB? Or do other languages do this as well?
TestClass.vb
public class TestClass
public shared function Somefunc() as Boolean
return true
end function
end class
MainClass.vb
imports TestClass
public class MainClass
public sub Main()
Somefunc()
end sub
end class
These files are in the App_Code directory. Just curious, because I've never thought of doing this before, nor have I read about it anywhere.