Dim gcAction As Action = Sub() GC.Collect() GC.WaitForPendingFinalizers() End Sub '---------------------------- Dim ac As New Action(Sub() GC.Collect() GC.WaitForPendingFinalizers() End Sub) ac() '-------------------------- Array.ForEach(New String() {"xx","mm","-r"},action) Dim action As New Action(Of String)(AddressOf DPrintString) Private Sub DPrintString(s As String) Debug.Print(s) End Sub