.NET convenience helpers