How to convert a this code to lambda expression in VB.NET

时间:2019-04-17 02:20:07

标签: vb.net lambda

How do i convert this code to lambda expression?

For Each li As ListBox In initLsts
   li.Items.Clear()
Next

Dim initLsts As List(Of ListBox)

initLsts.Add(listbox1)
initLsts.Add(ListBox2)

For Each li As ListBox In initLsts
   li.Items.Clear()
Next

0 个答案:

没有答案