Tom Miller has writen
an article on improving (or not making obvious mistakes in) code that uses Managed DirectX. Although it might be aimed at game programmers, in my experience many .NET programmers just don't know the caveats of .NET. Writing games forces you to think about memory usage and performance.