Stupid coding errors

I’ve been doing a lot of C# programming lately and for the life of me, I keep making the same dump coding error. Instead of doing this:

  if (objFoo.IsNew) 

I have been doing this:

  if (objFoo.IsNew = true) 

The thing is, I know that the second way is wrong and will lead to all kinds of bad results and yet I keep making the damn mistake!

It’s all of those years doing VB programming that’s got me screwed up.