Various useful C# classes and snipits