2009-11-24 Linq to object で 条件を絞り込んで選択 vb.net Dim ret As Integer = (From c As String In ListBox1.Items Where c = file Select c).Count