C#/.NET helpers - mostly extension methods