I am trying to understand delegates at the moment and came across the following snippet:
Function [Select](ByVal numbers As List(Of Integer), ByVal filter As Filter) As List(Of Integer)
Dim result As New List(Of Integer)
For Each number In numbers
' call delegate
If filter(number) = True Then
result.Add(number)
End If
Next
Return result
End Function
I was looking for an explanation, but all I could find was this , but that didn't help me understand the snippet I found. Can someone help me figure out what the square brackets are for [Select]?
ruedi source
share