N
Nathan Sokalski
I was trying to use a code sample from a book I bought (.NET Gotchas by
O'Reilly, author = Venkat Subramaniam). The line of code I am trying to use
is the following:
Dim coll As New Collection(Of Double)
However, when I enter this line of code, I recieve the following error:
'Microsoft.VisualBasic.Collection' has no type parameters and so cannot have
type arguments. If I use the following line of code:
Dim coll As New System.Collections.Generic.List(Of Double)
I do not recieve any errors. It seams like the book it trying to tell me to
use the Of keyword with the Collection class when it does not have a
constructor that it can be used with. Is there an error in the book? If not,
what am I doing wrong? I am using Visual Studio .NET 2005 with .NET 2.0.
Thanks.
O'Reilly, author = Venkat Subramaniam). The line of code I am trying to use
is the following:
Dim coll As New Collection(Of Double)
However, when I enter this line of code, I recieve the following error:
'Microsoft.VisualBasic.Collection' has no type parameters and so cannot have
type arguments. If I use the following line of code:
Dim coll As New System.Collections.Generic.List(Of Double)
I do not recieve any errors. It seams like the book it trying to tell me to
use the Of keyword with the Collection class when it does not have a
constructor that it can be used with. Is there an error in the book? If not,
what am I doing wrong? I am using Visual Studio .NET 2005 with .NET 2.0.
Thanks.