Perpetually useful C# stuff.