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 ?
VulpesPosted Dec 14, 2011, 4:38 AM
Goofy GiraffePosted Dec 14, 2011, 10:16 AM