I try to understand delegates at the moment and stumbled 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 searched for an explanation but all I could find is this but that doesn't help me understand the snippet I found. Could anyone help me to understand what the square brackets [Select]
are for?