Discussing the garbage collector (GC) that runs on Windows Phone 7 devices is helpful for the Windows Phone 7 game developer. Anyone who has programmed in XNA for Windows or Xbox 360 before knows the GC well.
One of the first things you must understand is the difference between value types and reference types. Value types such as
int, float, Vector3, Matrix, and
struct (this includes nullable types; a nullable type such as BOOL is just a special
struct) live on the stack. The GC does not care about the stack. Well, technically, it cares slightly, but only to the extent that the system begins to run low on memory, and you would have to be trying very hard to get ...