Jump to content
  • Advertisement
Sign in to follow this  
xsirxx

[.net] Queue...[]? under .NET C# 2.0?

This topic is 4230 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok so im new to .NET C# and am having a small problem. this works: Queue[] newQueue; newQueue = new Queue[2]; so why wont: Queue<Foo>[] newQueue; newQueue = new Queue<Foo>[2]; I dont really want to get into making a queue of a queue when all I really need is 2 of them by the same name... Can any1 enlighten me on this or why they did not allow this if indeed this is the case? Thanks much, Brad

Share this post


Link to post
Share on other sites
Advertisement
well its working now, a quick recompile and it worked... I must be falling asleep at the wheel. dont think I changed anything at all, just retyped it in using:

using FooQueue = System.Collections.Generic.Queue<Foo>;

FooQueue[] newFooQueue;
newFooQueue = new FooQueue[2];


same thing just with "using" then changed it back and it worked the same... who knows, I must need a break.

Thanks

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!