Public Shared Function [Select](Of TSource, TResult)(
ByVal source As IEnumerable(Of TSource),
ByVal selector As Func(Of TSource, TResult)
) As IEnumerable(Of TResult)
If source Is Nothing Then
Throw New ArgumentNullException("source")
End If
If selector Is Nothing Then
Throw New ArgumentNullException("selector")
End If
Return SelectIterator(Of TSource, TResult)(source, selector)
End Function
I understand the 'Of' keyword denotes a generic type parameter, but why is this keyword not used for the TResult parameter as well in the 'Public Shared Function [Select](Of TSource, TResult)' from above ?

VulpesRank #55 · 29.2K reputationPosted Dec 13, 2011, 11:38 PM EST
Goofy Giraffe4 reputationPosted Dec 14, 2011, 5:16 AM EST