Home

Declaration of range variables don't get tooltips

If you hover over the declaration of the local variables, they show their types, but the similar declarations in the query syntax do not:
Dim a As String = "Test"
Dim b = "T2"
Dim c = "C"c
Dim d = Nothing
Dim e = CStr(Nothing)
Dim f = New String({})

Dim qa = From ia As String In {a} Select na = ia
Dim qb = From ib In {b} Select nb = ib
Dim qc = From ic In {c} Select nc = ic
Dim qd = From id In {d} Select nd = id
Dim qe = From ie In {e} Select ne = ie
Dim qf = From [if] In {f} Select nf = [if]
The equivalent of the nx range variables do get tooltips in C#, but so do their equivalent New With {.nx=} anonymous fields in VB.NET, but the equivalent ix range variables are treated the same in C#.

Comments

Sign In or Register to comment.