2012-06-27 44 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

相关问题