471,852 Members | 1,051 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,852 software developers and data experts.

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 2504
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
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.