Useful extensions for C#.