some .net helpers