DefconDotNet

R# Lambda VB.NET bug

Jul 20th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.34 KB | None | 0 0
  1. Public Class _Default
  2.     Inherits Page
  3.  
  4.     Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
  5.         Dim list As IQueryable(Of String) = New List(Of String) With {.Capacity = "first", .Capacity = "second"}
  6.         Dim first = list.Where(Function(s) s = "first").SingleOrDefault()
  7.     End Sub
  8.  
  9. End Class
Advertisement
Add Comment
Please, Sign In to add comment