Public Function Read(Of T As {Class, New})(ByVal stream As
StreamReader) As IEnumerable(Of T)
  Throw New NotImplementedException()
End Function

And yes, the curly brackets do look silly here.

On Apr 12, 1:43 pm, Mike Fry <[email protected]> wrote:
> Hi All,
>
> Can anyone provide an _exact_ VB.NET equivalent of this C# function?
>
> The web-based conversion tools don't seem to handle the "where T : class, 
> new()"
> part correctly - they ignore it.
>
> public IEnumerable<T> Read<T>(StreamReader stream) where T : class, new()
> {
> ...
>
> }
>
> --
> Regards,
> Mike Fry
> Johannesburg

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to