Don't use foreach and for loops in .NET