A few useful c# extensions