Some useful snippets in C# XNA