2012-06-27 130 views
0

由於某種原因,當我在With語句中使用Aggregate Lambda表達式時,vb.net中的Intellisense停止工作。Visual Studio 2010中的Intellisense

With Me.SalesPackage 
    .WebLinks = Sales.Where(Function(f) f.Current.BookerWeb > 0).Count 
    .WebAmount = Aggregate o In Sales.Where(Function(f) f.Current.WebBooker > 0) Into 
    Sum(o.Current.WebPrice) 
End With 

如果我插入.WebLinks和.WebAmount並開始輸入之間的新生產線,它的工作原理。但如果我在總結聲明之後執行此操作,它將無法工作......

任何想法?

+0

將此發佈到connect.microsoft.com –

回答

1

根據我的經驗,當Intellisense停止工作時,肯定會在Linq表達式中出現語法錯誤。

+1

確實如此,但在這種情況下,如果我將它置於With語句之外,intellisense適用於相同的表達式... – Erik

相關問題