Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XNA and Linq on Xbox360

Tags:

c#

linq

xna

Please excuse the newbie question but I was wondering if I used Linq in my XNA application, would this still work on the Xbox 360?

like image 568
Neil Knight Avatar asked Jul 01 '10 07:07

Neil Knight


People also ask

Is XNA framework still used?

It's official: XNA is dead.

Does MonoGame use XNA?

MonoGame is an open source, C# framework that implements the application programming interface (API) of XNA, Microsoft's late game development toolset that was retired in 2013. It also supports all .


2 Answers

Yes the Xna framework for Xbox 360 and Zune supports LINQ.

(Look in System.Core.dll in $PROGRAM_FILES$\Microsoft XNA\XNA Game Studio\v3.1\References\Xbox360)

like image 135
Julien Hoarau Avatar answered Sep 28 '22 14:09

Julien Hoarau


Yes it will work, but you should be aware that normal use of LINQ queries involves using lambdas which will generate gargabe pretty fast if you run your queries a lot. This means you could have issues in the Xbox360 as the GC is pretty simple there.

like image 22
Vicente Cartas Avatar answered Sep 28 '22 16:09

Vicente Cartas