9
Would anyone be able to tell me what is the difference between a Func and a Function in VB.
For instance see the following:
Dim F As Func(Of String) = Function() As String
Return "B"
End Function
Dim F2 = Function() As String
Return "B"
End Function
Fappears as aFunc(Of String)F2as aFunction() As String.
It looks like they do the same thing but given that the compiler sees them as having different types surely there must be a subtlity.
Best regards
Charles