Saturday, March 24, 2012

List<Something>

As we use List<Something> in c#, what is the competible thing in VB. Means how do we write this in VB ?

List(Of Something)

HTH,
Ryan


It gives me error that Type "List" is not defined.....

You need to include the System.Collections.Generic namespace.

i.e.

Imports System.Collections.Generic

or

System.Collections.Generic.List(Of Something)

HTH,
Ryan


Thankx, it works fine...

Check this link for more C# - VB comparisions

http://www.harding.edu/USER/fmccown/WWW/vbnet_csharp_comparison.html

Thanks

0 comments:

Post a Comment