View Single Post
  #1 (permalink)  
Old August 17th, 2005, 04:46 AM
shenku shenku is offline
Authorized User
 
Join Date: Apr 2005
Location: , , United Kingdom.
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Collections in C#?

Hi all

I am currently moving over from vb.net and have a simple code question. In vb.net you use collections as if they were a datatype something like...

Code:
 
        Private Function LoadCollection() As Collection
            Dim colPrivCol As New Collection 
            colPrivCol.Add(oIPStory, oIPStory.Key)
but in C# I cant get a reference in the same way? I cant create a collection at all? Do I have to use ArrayLists?

thanks for your help.


Reply With Quote