>I like to have all the declarations at the top of the method. I have a code where the declaration is part of the LINK select line such as:
>
>
>Dim loJobs = (From...
>
>
>How can I declare loJobs as in its own DIM line and have the LINK select line in another one?
If the query returns an anonymous type then you can't. If the query yields a known type then something like this will work:
Dim list As New List(Of String)() From { _
"One", _
"Two", _
"Three" _
}
Dim s As IEnumerable(Of String)
s = From x In list select x
(Disclaimer: used a C# -> VB converter and assuming the translation is correct)