
Public Class PrimaryClass
Public Shared Property TestSubClass As New SubClass
Public Class SubClass
Public Shared Property TestProperty As Boolean
End Class
End Class
Public Class PrimaryClass
Public Shared Property TestSubClass As New SubClass
Public Class SubClass
Public Shared Property TestProperty As Boolean
End Class
End Class
Hi Kelley,
Could you provide more detail? In the latest version, when I try IntelliPrompt on what you wrote, I can access everything fine.
It does not work in you online demo - not sure if that is the latest or not.
Point is, if you declare an instance of the Primary Class:
Dim x As PrimaryClass
And dot into it
x. <-- you will see intellisense with four items (Equals,GetHashCode,GetType, and ToString)
Try the same thing in Visual Studio and you will see the same four items and the Property TestSubClass.
Also, every time I attempt to initialize a variable with the New operator it replaces it with NewsStypleUirParser, very annoying!
Hi Kelley,
I haven't seen that style of sub-class access before and am having trouble finding where it is in the VB specifications. If you change it to do it the normal way, it will work fine. Like this:
PrimaryClass.
We will add the 'New' keyword to the type completion list. That will help with the other issue.
Please log in to a validated account to post comments.