7、在行继续符,如图1中的示例所示。 图1推断出行继续符 Function FilterByCountry( ByVal customers As IEnumerable(Of Customer), ByVal country As String) As IEnumerable(Of Customer) Dim query = From c In customers Where c.Country = country Select <%=
8、 c.Name & "," & c.Country %> Return query End Function 在VisualBasic2008中,图1中的代码将需要9个下划线字符。然而,在以下每种情况下,编译器会推断出下划线字符在何时是必要的,并允许将其忽略