Sick of lines like these in your Game Components? :
graphicsService = (IGraphicsDeviceService)Game.Services.GetService(typeof(IGraphicsDeviceService));
Well, me too. And since my efforts to bring it up in the XNA forums were a bit fruitless, I decided to give it a shot.
Here’s a pretty small snippet that will save you tons of typecasts and typeof
s.
Just enclose with your favourite namespace declaration.