【发布时间】:2015-07-05 20:43:51
【问题描述】:
C#代码
byte[] array = bytes.Take<byte>(num).ToArray<byte>();
VB.NET 转换后的代码(我尝试了 multiable 的。相同的结果)
Dim array As Byte() = bytes.Take(Of Byte)(num).ToArray(Of Byte)()
出现错误:(of Byte)
错误
Extension method 'Public Function Take(count As Integer) As System.Collections.Generic.IEnumerable(Of TSource)' defined in 'System.Linq.Enumerable' is not generic (or has no free type parameters) and so cannot have type arguments
【问题讨论】: