Not sure about VB.NET, but it might look something like this:Code:var myQuery = from x in aListOfThings where x.CustomerCity == "Dallas" select x;
Where aListOfThings is List<Things> or List(Of Things).Code:Dim myQuery = From x In aListOfThings Where x.CustomerCity = "Dallas" Select x
In this case, myQuery is going to be IEnumerable<Things> or IEnumerable(Of Things), but the 'var' infers the type. Similarly,
abc will be inferred as a string.Code:var abc = "Noob";




Reply With Quote