arnold,
You can actually use the Collection class in C#, by setting a reference
to Microsoft.VisualBasic.dll. However, I don't think that this is a good
idea.
The better object, in my opinion, is the Hashtable. This is slightly
different than the Collection class in VB, because it allows any type to be
used as a key, not just strings. However, you can not access the items
using a numeric indexer, so if that is important to you (and the keys
aren't), then use the ArrayList class.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"arnold" <ar****@freesurf.fr> wrote in message
news:Ol**************@TK2MSFTNGP12.phx.gbl...
HI
I 've been trying to find the equivalent code in C# but I did not succeed.
What is the equivalent of Collection in C#?
Dim c_colNewCustomerDataRows As New Collection()
If c_colNewCustomerDataRows.Count > 0 Then
Dim drCustomers As DataSet1.CustomersRow
For Each drCustomers In c_colNewCustomerDataRows
DataSet11.Customers.Rows.Add(drCustomers)
Next
End If
Thanks