Collections in C#

Posted by Oghenero on Stack Overflow See other posts from Stack Overflow or by Oghenero
Published on 2010-06-15T16:53:43Z Indexed on 2010/06/15 17:02 UTC
Read the original article Hit count: 181

Filed under:
|

am converting a vb.net component to c#, i get this error

Using the generic type 'System.Collections.ObjectModel.Collection<T>' requires '1' type arguments

This is what i did

in VB.NET i had this

 Private _bufferCol As Collection

i did this in c#

private Collection _bufferCol = new Collection();

My declaration is

using Microsoft.VisualBasi;    
using System.Collections;    
using System.Collections.Generic;    
using System.ComponentModel;    
using System.Collections.ObjectModel;

Can any body help me please.

© Stack Overflow or respective owner

Related posts about c#

Related posts about collection