List in c# [modified]
-
i implemented list class in (web project).
public class person { string name; } public partial class fout : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { List<person> obj = new List<person>(); } }
i am getting error The name or namespace List cannot be found Should i add any reference ?Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
modified on Friday, March 7, 2008 1:32 AM
-
i implemented list class in (web project).
public class person { string name; } public partial class fout : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { List<person> obj = new List<person>(); } }
i am getting error The name or namespace List cannot be found Should i add any reference ?Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
modified on Friday, March 7, 2008 1:32 AM
You need to use
System.Collections.Generic
namespace.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
You need to use
System.Collections.Generic
namespace.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
ThankQ
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
-
You need to use
System.Collections.Generic
namespace.All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
I'm surprised that the classes don't include it by default, they still include the old one. But then, when the IDE adds a method stub, it will throw an Exception and not a NotYetImplimentedException, so...
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )