Small C# snippets that do various things