469,333 Members | 4,608 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,333 developers. It's quick & easy.

Compiler Error Message: CS0246:

i got an error massage cs0246: The type or namespace name 'StringCollection' could not be found (are you missing a using directive or an assembly reference?)

heres my code:

public static StringCollection GetCountries()
{
StringCollection Countries = new StringCollection();
Countries.AddRange (_countries);
return countries;
}

}

help me for this error thanks..
Aug 6 '07 #1
1 2422
shweta123
692 Expert 512MB
Hi,

I think you have to refer following namespaces

Imports System
Imports System.Collections
Imports System.Collections.Specialized


i got an error massage cs0246: The type or namespace name 'StringCollection' could not be found (are you missing a using directive or an assembly reference?)

heres my code:

public static StringCollection GetCountries()
{
StringCollection Countries = new StringCollection();
Countries.AddRange (_countries);
return countries;
}

}

help me for this error thanks..
Aug 6 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Alex Duggleby | last post: by
1 post views Thread by Leo | last post: by
1 post views Thread by Kumar Bhogaraju | last post: by
3 posts views Thread by Mariano | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by haryvincent176 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.